base_s Struct Reference

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

#include <cp_base.h>

Collaboration diagram for base_s:
Collaboration graph
[legend]

Data Fields

int idx
char name [MAX_VAR]
baseBuildingTile_t map [BASE_SIZE][BASE_SIZE]
qboolean founded
vec3_t pos
qboolean hasBuilding [MAX_BUILDING_TYPE]
linkedList_taircraft
aircraft_taircraftCurrent
baseStatus_t baseStatus
float alienInterest
struct radar_s radar
aliensCont_t alienscont [MAX_ALIENCONT_CAP]
capacities_t capacities [MAX_CAP]
equipDef_t storage
inventory_t bEquipment
baseWeapon_t batteries [MAX_BASE_SLOT]
int numBatteries
baseWeapon_t lasers [MAX_BASE_SLOT]
int numLasers
qboolean selected
building_tbuildingCurrent

Detailed Description

A base with all it's data.

Definition at line 210 of file cp_base.h.


Field Documentation

All aircraft in this base

Todo:
move aircraft out from base structure

Definition at line 228 of file cp_base.h.

Referenced by AIR_Add(), AIR_AircraftSelect(), AIR_Delete(), AIR_GetNextFromBase(), B_BaseInit_f(), B_SetUpBase(), and CL_ResetSinglePlayerData().

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

Definition at line 233 of file cp_base.h.

Referenced by B_LoadXML(), B_SaveXML(), B_SetUpBase(), CP_BaseAttackChooseBase(), and UFO_UpdateAlienInterestForOneBase().

aliensCont_t base_s::alienscont[MAX_ALIENCONT_CAP]

The equipment of the base; needn't be saved; a hack based on assertion (MAX_CONTAINERS >= FILTER_AIRCRAFT) ... see e.g. CL_UpdateEquipmentMenuParameters_f

Definition at line 243 of file cp_base.h.

Referenced by B_LoadXML(), CL_CleanTempInventory(), and CL_UpdateEquipmentMenuParameters_f().

qboolean base_s::hasBuilding[MAX_BUILDING_TYPE]
Note:
These qbooleans 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 224 of file cp_base.h.

Referenced by B_GetBuildingStatus(), and B_SetBuildingStatus().

baseWeapon_t base_s::lasers[MAX_BASE_SLOT]
baseBuildingTile_t base_s::map[BASE_SIZE][BASE_SIZE]
char base_s::name[MAX_VAR]

the current selected base

Definition at line 251 of file cp_base.h.

Referenced by B_GetCurrentSelectedBase(), and B_SetCurrentSelectedBase().


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

Generated by  doxygen 1.6.2