UFO: Alien Invasion
Loading...
Searching...
No Matches
base_t Struct Reference

A base with all it's data. More...

#include <cp_base.h>

Collaboration diagram for base_t:
Collaboration graph

Data Fields

int idx
char name [MAX_VAR]
baseBuildingTile_t map [BASE_SIZE][BASE_SIZE]
bool founded
vec3_t pos
bool hasBuilding [MAX_BUILDING_TYPE]
aircraft_taircraftCurrent
baseStatus_t baseStatus
float alienInterest
struct radar_s radar
class AlienContainmentalienContainment
capacities_t capacities [MAX_CAP]
equipDef_t storage
Inventory bEquipment
baseWeapon_t batteries [MAX_BASE_SLOT]
int numBatteries
int numActiveBatteries
baseWeapon_t lasers [MAX_BASE_SLOT]
int numLasers
int numActiveLasers
production_queue_t productions
bool selected

Detailed Description

A base with all it's data.

Definition at line 84 of file cp_base.h.

Field Documentation

◆ aircraftCurrent

◆ alienContainment

◆ alienInterest

float base_t::alienInterest

How much aliens know this base (and may attack it)

Definition at line 104 of file cp_base.h.

Referenced by B_Build(), B_Destroy(), B_LoadXML(), B_SaveXML(), CP_BaseAttackChooseBase(), and UFO_UpdateAlienInterestForOneBase().

◆ baseStatus

◆ batteries

◆ bEquipment

Inventory base_t::bEquipment

The equipment of the base; needn't be saved

Definition at line 114 of file cp_base.h.

Referenced by B_LoadXML(), CP_CleanTempInventory(), CP_TEAM_DeEquipActor_f(), and CP_TEAM_FillEquipSoldierList_f().

◆ capacities

capacities_t base_t::capacities[MAX_CAP]

Capacities.

Definition at line 110 of file cp_base.h.

Referenced by CAP_AddCurrent(), CAP_AddMax(), CAP_SetCurrent(), and CAP_SetMax().

◆ founded

◆ hasBuilding

bool base_t::hasBuilding[MAX_BUILDING_TYPE]
Note
These bools does not say whether there is such building in the base or there is not. They are true only if such buildings are operational (for example, in some cases, if they are provided with power).

Definition at line 98 of file cp_base.h.

Referenced by B_GetBuildingStatus(), and B_SetBuildingStatus().

◆ idx

◆ lasers

◆ map

The base maps (holds building pointers)

Todo
maybe integrate BASE_INVALID_SPACE and BASE_FREE_SPACE here?

Definition at line 87 of file cp_base.h.

Referenced by B_AddBlockedTile(), B_BuildBuilding(), B_BuildFromTemplate(), B_BuildingDestroy(), B_LoadXML(), and TEST_F().

◆ name

◆ numActiveBatteries

int base_t::numActiveBatteries

◆ numActiveLasers

int base_t::numActiveLasers

◆ numBatteries

◆ numLasers

◆ pos

◆ productions

production_queue_t base_t::productions

Definition at line 124 of file cp_base.h.

◆ radar

◆ selected

bool base_t::selected

the current selected base

Definition at line 126 of file cp_base.h.

Referenced by B_GetCurrentSelectedBase(), and B_SetCurrentSelectedBase().

◆ storage


The documentation for this struct was generated from the following file: