UFO: Alien Invasion
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
base_s Struct Reference

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

#include <cp_base.h>

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

float base_s::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().

Inventory base_s::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_t base_s::capacities[MAX_CAP]

Capacities.

Definition at line 110 of file cp_base.h.

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

bool base_s::founded

already founded?

Definition at line 90 of file cp_base.h.

Referenced by B_Build(), B_GetFirstUnfoundedBase(), B_LoadXML(), B_SaveXML(), GAME_CP_DrawBaseLayout(), TEST_F(), and TR_TransferEnd().

bool base_s::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().

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().

int base_s::numActiveBatteries
int base_s::numActiveLasers
production_queue_t base_s::productions

Definition at line 124 of file cp_base.h.

bool base_s::selected

the current selected base

Definition at line 126 of file cp_base.h.

Referenced by B_GetCurrentSelectedBase(), and B_SetCurrentSelectedBase().


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