building_s Struct Reference

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

#include <cp_base.h>

Collaboration diagram for building_s:
Collaboration graph
[legend]

Data Fields

int idx
struct building_stpl
struct base_sbase
char * id
char * name
char * image
char * mapPart
char * pedia
char * needs
int fixCosts
int varCosts
float level
int timeStart
int buildTime
buildingStatus_t buildingStatus
qboolean visible
char onConstruct [MAX_VAR]
char onAttack [MAX_VAR]
char onDestroy [MAX_VAR]
int maxCount
vec2_t pos
qboolean mandatory
int maxEmployees
buildingType_t buildingType
technology_ttech
struct building_sdependsBuilding
int capacity

Detailed Description

A building with all it's data.

Definition at line 150 of file cp_base.h.


Field Documentation

The base this building is located in.

Definition at line 153 of file cp_base.h.

Referenced by B_LoadXML(), B_ParseBuildings(), and B_SetBuildingByClick().

Capacity of this building (used in calculate base capacities).

Definition at line 191 of file cp_base.h.

Referenced by B_MarkBuildingDestroy(), and B_UpdateBaseCapacities().

If the building needs another one to work (= to be buildable).

See also:
"buildingTemplates" list

Definition at line 189 of file cp_base.h.

Referenced by B_BuildingStatus(), B_CheckBuildingDependencesStatus(), B_CheckBuildingStatusForMenu_f(), B_DrawBuilding(), B_ParseBuildings(), B_UpdateStatusBuilding(), UI_BaseMapNodeDrawTooltip(), and UP_BuildingDescription().

Index in in the base buildings list.

Definition at line 151 of file cp_base.h.

Referenced by B_AssembleMap(), B_BuildingDestroy(), B_LoadXML(), B_ParseBuildings(), B_SaveXML(), B_SetBuildingByClick(), E_SaveXML(), and UI_BaseMapNodeDraw().

Definition at line 157 of file cp_base.h.

Referenced by B_DrawBuilding(), B_ScriptSanityCheck(), RS_InitTree(), and UI_BaseMapNodeDraw().

level of the building.

Note:
This value depends on the implementation of the affected building might e.g. be a factor

Definition at line 166 of file cp_base.h.

Referenced by B_GetMaxBuildingLevel(), B_LoadXML(), and B_SaveXML().

Definition at line 182 of file cp_base.h.

Referenced by B_BuildFromTemplate(), and B_ParseBaseTemplate().

Definition at line 157 of file cp_base.h.

Referenced by B_AssembleMap(), and B_ScriptSanityCheck().

How many building of the same type allowed?

Definition at line 179 of file cp_base.h.

Referenced by B_BuildingInit(), B_ParseBaseTemplate(), and B_ParseBuildings().

How many employees to hire on construction in the first base

Definition at line 185 of file cp_base.h.

Referenced by E_HireForBuilding().

"needs" determines the second building part.

Definition at line 159 of file cp_base.h.

Referenced by B_AssembleMap(), B_BuildingDestroy(), B_SetBuildingByClick(), UI_BaseMapNodeClick(), and UI_BaseMapNodeDraw().

char building_s::onAttack[MAX_VAR]

Definition at line 176 of file cp_base.h.

char building_s::onConstruct[MAX_VAR]

Event handler functions

Definition at line 175 of file cp_base.h.

Referenced by B_AddBuildingToBasePos(), and B_CheckBuildingConstruction().

char building_s::onDestroy[MAX_VAR]

Definition at line 177 of file cp_base.h.

Referenced by B_BuildingDestroy().

Definition at line 157 of file cp_base.h.

Referenced by B_BuildingInfoClick_f(), B_BuildingOpenAfterClick(), and B_ScriptSanityCheck().

location in the base.

Definition at line 181 of file cp_base.h.

Referenced by B_AddBuildingToBasePos(), B_BuildingDestroy(), B_LoadXML(), B_SaveXML(), and B_SetBuildingByClick().

Link to the building-technology.

Definition at line 188 of file cp_base.h.

Referenced by B_BuildingInit(), B_ParseBuildings(), and BaseSummary_Init().

Definition at line 160 of file cp_base.h.

Referenced by B_DrawBuilding(), CP_GetSalaryUpKeepBase(), and UP_BuildingDescription().

Is this building visible in the building list.

Definition at line 172 of file cp_base.h.

Referenced by B_BuildingInit(), B_ParseBuildings(), and B_ScriptSanityCheck().


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

Generated by  doxygen 1.6.2