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] |
qboolean | founded |
vec3_t | pos |
qboolean | hasBuilding [MAX_BUILDING_TYPE] |
linkedList_t * | aircraft |
aircraft_t * | aircraftCurrent |
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_t * | buildingCurrent |
A base with all it's data.
Definition at line 210 of file cp_base.h.
All aircraft in this base
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().
Currently selected aircraft in _this base_. (i.e. an entry in base_t->aircraft).
Definition at line 229 of file cp_base.h.
Referenced by AIM_AircraftEquipAddItem_f(), AIM_AircraftEquipMenuUpdate(), AIM_AircraftEquipRemoveItem_f(), AIM_AircraftEquipSlotSelect_f(), AIM_AircraftEquipZoneSelect_f(), AIM_AircraftReturnToBase_f(), AIM_AircraftStart_f(), AIM_SelectAircraft_f(), AIM_UpdateItemDescription(), AIR_AircraftSelect(), AIR_ChangeAircraftName_f(), AIR_DeleteAircraft(), AIR_MoveAircraftIntoNewHomebase(), AIR_NewAircraft(), B_LoadXML(), B_SaveXML(), B_SetCurrentSelectedBase(), CL_AssignPilot_f(), CL_AssignSoldier_f(), CL_UpdateEmployeeList(), CL_UpdateEquipmentMenuParameters_f(), CP_BaseAttackMissionDestroyBase(), CP_BaseAttackMissionIsFailure(), CP_BaseAttackStartMission(), CP_MissionEnd(), and CP_SpawnRescueMission().
float base_s::alienInterest |
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] |
alien containment capacity
Definition at line 237 of file cp_base.h.
Referenced by AC_AlienClick(), AC_KillAll(), AC_KillOne_f(), AC_LoadXML(), AC_SaveXML(), AC_UpdateMenu(), AL_AddAliens(), AL_CountAll(), AL_CountForMenu(), AL_CountInBase(), AL_FillInContainment(), AL_GetAlienAmount(), AL_RemoveAliens(), BaseSummary_Init(), TR_CargoListSelect_f(), TR_EmptyTransferCargo(), TR_TransferAlienAfterMissionStart(), TR_TransferListClear_f(), TR_TransferListSelect_f(), and TR_TransferSelect().
the current base status
Definition at line 231 of file cp_base.h.
Referenced by AIR_AircraftStatusToName(), AIR_SendAircraftToMission(), AIRFIGHT_CampaignRunBaseDefence(), B_BaseResetStatus(), B_CheckBuildingStatusForMenu_f(), B_Destroy(), B_Destroy_AntimaterStorage_f(), B_LoadXML(), B_MarkBuildingDestroy(), B_SaveXML(), B_SetCurrentSelectedBase(), B_SetUpBase(), BS_BuySellAllowed(), CP_BaseAttackChooseBase(), CP_BaseAttackMissionDestroyBase(), CP_BaseAttackMissionIsFailure(), CP_BaseAttackStartMission(), CP_LoadMissionsXML(), E_HireAllowed(), HOS_HospitalAllowed(), MAP_DrawMapOneBase(), PR_ProductionAllowed(), and RS_ResearchAllowed().
baseWeapon_t base_s::batteries[MAX_BASE_SLOT] |
Missile batteries assigned to base.
Definition at line 246 of file cp_base.h.
Referenced by AII_BaseCanShoot(), AII_UpdateInstallationDelay(), AIR_AircraftsNotifyUFORemoved(), AIRFIGHT_CampaignRunBaseDefence(), B_LoadXML(), B_SaveXML(), BDEF_AddBattery(), BDEF_AutoSelectTarget(), BDEF_BaseDefenceMenuUpdate_f(), BDEF_ChangeAutoFire(), BDEF_GetBaseSlotByIDX(), BDEF_InitialiseBaseSlots(), BDEF_ReloadBaseWeapons(), BDEF_RemoveBattery(), CL_PopupInterceptBaseClick_f(), MAP_DrawMapOneBase(), and UFO_IsTargetOfBase().
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().
needn't be saved
Definition at line 252 of file cp_base.h.
Referenced by B_BuildingClick_f(), B_BuildingDestroy(), B_BuildingDestroy_f(), B_BuildingInfoClick_f(), B_BuildingInit(), B_BuildingStatus_f(), B_CheckBuildingConstruction(), B_MarkBuildingDestroy(), B_ResetBuildingCurrent(), UI_BaseMapNodeClick(), and UI_BaseMapNodeDraw().
capacities_t base_s::capacities[MAX_CAP] |
Capacities.
Definition at line 239 of file cp_base.h.
Referenced by AC_UpdateMenu(), AIR_CalculateHangarStorage(), AIR_CheckMoveIntoNewHomebase(), AIR_MoveAircraftIntoNewHomebase(), AIR_UpdateHangarCapForAll(), AIR_UpdateHangarCapForOne(), AL_AddAliens(), AL_ChangeAliveAlienNumber(), AL_CheckAliveFreeSpace(), AL_FillInContainment(), B_AddToStorage(), B_AntimatterInBase(), B_BuildFromTemplate(), B_BuildingOnDestroy_f(), B_BuildingOpenAfterClick(), B_Destroy_AntimaterStorage_f(), B_FreeCapacity(), B_InitialEquipment(), B_ManageAntimatter(), B_MarkBuildingDestroy(), B_RemoveAircraftExceedingCapacity(), B_RemoveAntimatterExceedingCapacity(), B_RemoveItemsExceedingCapacity(), B_ResetAllStatusAndCapacities(), B_UpdateAntimatterCap(), B_UpdateBaseCapacities(), B_UpdateStorageAndCapacity(), B_UpdateStorageCap(), BaseSummary_Init(), BS_BuyItem_f(), BS_BuyType(), BS_CheckAndDoBuyItem(), E_DeleteEmployeesExceedingCapacity(), E_HireEmployee(), E_MoveIntoNewBase(), E_UnhireEmployee(), E_UpdateGUICount_f(), PR_CalculateProductionPercentDone(), PR_DisassemblingFrame(), PR_ProductionFrame(), PR_ProductionList_f(), PR_UpdateProductionCap(), RS_AssignScientist(), RS_MaxOutResearch(), RS_RemoveScientist(), RS_RemoveScientistsExceedingCapacity(), RS_UpdateInfo(), TR_CheckEmployee(), and TR_CheckItem().
already founded?
Definition at line 216 of file cp_base.h.
Referenced by AIR_CalculateHangarStorage(), B_BuildBase_f(), B_GetFirstUnfoundedBase(), B_GetFoundedBaseByIDX(), B_GetFoundedBaseCount(), B_LoadXML(), B_SaveXML(), B_SetCurrentSelectedBase(), B_SetUpBase(), TR_TransferEnd(), and UI_BaseLayoutNodeDraw().
qboolean base_s::hasBuilding[MAX_BUILDING_TYPE] |
Definition at line 224 of file cp_base.h.
Referenced by B_GetBuildingStatus(), and B_SetBuildingStatus().
int base_s::idx |
Self link. Index in the global base-list.
Definition at line 211 of file cp_base.h.
Referenced by AIR_AircraftGetFromIDX(), AIR_RemoveEmployee(), AIR_RemoveFromAircraftTeam(), AIR_SaveAircraftXML(), B_AddBuildingToBasePos(), B_BuildingDestroy(), B_CheckBuildingConstruction(), B_Destroy(), B_GetNextBuilding(), B_LoadXML(), B_NextBase_f(), B_PrevBase_f(), B_SaveXML(), B_SelectBase(), B_SetBuildingByClick(), B_SetUpBase(), B_UpdateOneBaseBuildingStatusOnDisable(), B_UpdateOneBaseBuildingStatusOnEnable(), BaseSummary_Init(), BaseSummary_SelectBase_f(), CL_ActorPilotSelect_f(), CL_ActorTeamSelect_f(), CL_AssignPilot_f(), CL_ResearchSelect_f(), CP_SaveMissionsXML(), E_LoadXML(), E_SaveXML(), PR_DecreaseProduction(), PR_EmptyQueue(), PR_ProductionDown_f(), PR_ProductionIncrease_f(), PR_ProductionListClick_f(), PR_ProductionListRightClick_f(), PR_ProductionRollBottom_f(), PR_ProductionStop_f(), PR_ProductionType_f(), PR_ProductionUp_f(), PR_QueueNext(), PR_UpdateProductionList(), RS_InitGUI(), RS_ResearchRun(), RS_SaveXML(), TR_Init_f(), TR_SaveXML(), TR_TransferAlienAfterMissionStart(), TR_TransferAliensFromMission_f(), TR_TransferBaseSelect(), and US_RemoveStoredUFO().
baseWeapon_t base_s::lasers[MAX_BASE_SLOT] |
Laser batteries assigned to base.
Definition at line 248 of file cp_base.h.
Referenced by AII_BaseCanShoot(), AII_UpdateInstallationDelay(), AIR_AircraftsNotifyUFORemoved(), AIRFIGHT_CampaignRunBaseDefence(), B_LoadXML(), B_SaveXML(), BDEF_AddBattery(), BDEF_AutoSelectTarget(), BDEF_BaseDefenceMenuUpdate_f(), BDEF_ChangeAutoFire(), BDEF_GetBaseSlotByIDX(), BDEF_InitialiseBaseSlots(), BDEF_ReloadBaseWeapons(), BDEF_RemoveBattery(), CL_PopupInterceptBaseClick_f(), MAP_DrawMapOneBase(), and UFO_IsTargetOfBase().
baseBuildingTile_t base_s::map[BASE_SIZE][BASE_SIZE] |
The base maps (holds building pointers)
Definition at line 213 of file cp_base.h.
Referenced by B_AssembleMap(), B_BuildFromTemplate(), B_BuildingDestroy(), B_LoadXML(), B_SaveXML(), B_SetBuildingByClick(), UI_BaseLayoutNodeDraw(), UI_BaseMapIsCellFree(), UI_BaseMapNodeClick(), UI_BaseMapNodeDraw(), UI_BaseMapNodeDrawTooltip(), UI_BaseMapNodeMiddleClick(), and UI_BaseMapNodeRightClick().
char base_s::name[MAX_VAR] |
Name of the base
Definition at line 212 of file cp_base.h.
Referenced by AII_UpdateOneInstallationDelay(), AIR_AircraftGetFromIDX(), AIR_AircraftReturnToBase(), AIR_MoveAircraftIntoNewHomebase(), AIR_NewAircraft(), AIR_Refuel(), AIR_SendAircraftPursuingUFO(), AIR_UpdateHangarCapForAll(), B_BuildBase_f(), B_ChangeBaseName_f(), B_Destroy_AntimaterStorage_f(), B_LoadXML(), B_ManageAntimatter(), B_ResetAllStatusAndCapacities(), B_SaveXML(), B_SellOrAddItems(), B_SetBaseTitle_f(), B_SetCurrentSelectedBase(), B_UpdateBaseData(), BDEF_RemoveBattery_f(), CL_DisplayHomebasePopup(), CL_DisplayPopupAircraft(), CL_DisplayPopupInterceptMission(), CL_DisplayPopupInterceptUFO(), CL_StatsUpdate_f(), CL_UpdateCharacterStats(), CP_BaseAttackGoToBase(), CP_BaseAttackMissionDestroyBase(), CP_BaseAttackStartMission(), CP_LoadMissionsXML(), CP_MissionEndActions(), CP_NationHandleBudget(), E_DeleteEmployeesExceedingCapacity(), MAP_DrawMapOneBase(), MAP_MapClick(), PR_DisassemblingFrame(), PR_ProductionFrame(), PR_QueueNext(), RS_AssignScientist(), RS_InitGUI(), RS_ResearchRun(), RS_UpdateInfo(), TR_EmptyTransferCargo(), TR_Init_f(), TR_InitBaseList(), TR_TransferAlienAfterMissionStart(), TR_TransferAliensFromMission_f(), TR_TransferBaseSelect(), TR_TransferEnd(), TR_TransferStart_f(), and UFO_CampaignCheckEvents().
Definition at line 247 of file cp_base.h.
Referenced by AII_BaseCanShoot(), AII_UpdateInstallationDelay(), AIR_AircraftsNotifyUFORemoved(), AIRFIGHT_CampaignRunBaseDefence(), B_LoadXML(), B_SaveXML(), BDEF_AddBattery(), BDEF_AutoSelectTarget(), BDEF_BaseDefenceMenuUpdate_f(), BDEF_ChangeAutoFire(), BDEF_GetBaseSlotByIDX(), BDEF_ReloadBaseWeapons(), BDEF_RemoveBattery(), BDEF_RemoveBattery_f(), CL_PopupInterceptBaseClick_f(), MAP_DrawMapOneBase(), and UFO_IsTargetOfBase().
Definition at line 249 of file cp_base.h.
Referenced by AII_BaseCanShoot(), AII_UpdateInstallationDelay(), AIR_AircraftsNotifyUFORemoved(), AIRFIGHT_CampaignRunBaseDefence(), B_LoadXML(), B_SaveXML(), BDEF_AddBattery(), BDEF_AutoSelectTarget(), BDEF_BaseDefenceMenuUpdate_f(), BDEF_ChangeAutoFire(), BDEF_GetBaseSlotByIDX(), BDEF_ReloadBaseWeapons(), BDEF_RemoveBattery(), BDEF_RemoveBattery_f(), CL_PopupInterceptBaseClick_f(), MAP_DrawMapOneBase(), and UFO_IsTargetOfBase().
pos on geoscape
Definition at line 217 of file cp_base.h.
Referenced by AIR_AircraftHasEnoughFuel(), AIR_AircraftReturnToBase(), AIR_CheckMoveIntoNewHomebase(), AIR_MoveAircraftIntoNewHomebase(), AIR_NewAircraft(), AIRFIGHT_AddProjectile(), AIRFIGHT_BaseShoot(), B_AssembleMap(), B_BuildBase_f(), B_LoadXML(), B_SaveXML(), B_SetUpBase(), BDEF_AutoTarget(), CP_BaseAttackGoToBase(), CP_BaseAttackStartMission(), MAP_DrawMapOneBase(), MAP_GetGeoscapeAngle(), MAP_MapClick(), MAP_PositionCloseToBase(), PR_CalculateProductionPercentDone(), RADAR_AddDetectedUFOToEveryRadar(), RADAR_CheckRadarSensored(), RADAR_UpdateStaticRadarCoverage(), TR_TransferAlienAfterMissionStart(), TR_TransferStart(), UFO_CampaignCheckEvents(), UFO_UpdateAlienInterestForOneBase(), and US_GetClosestStoredUFO().
struct radar_s base_s::radar |
Definition at line 235 of file cp_base.h.
Referenced by B_LoadXML(), B_SaveXML(), B_SetUpBase(), MAP_DrawMapOneBase(), RADAR_AddDetectedUFOToEveryRadar(), RADAR_DeactivateRadarOverlay(), RADAR_NotifyUFORemoved(), RADAR_UpdateBaseRadarCoverage_f(), RADAR_UpdateStaticRadarCoverage(), and UFO_CampaignCheckEvents().
the current selected base
Definition at line 251 of file cp_base.h.
Referenced by B_GetCurrentSelectedBase(), and B_SetCurrentSelectedBase().
weapons, etc. stored in base
Definition at line 241 of file cp_base.h.
Referenced by AIM_UpdateAircraftItemList(), B_AddToStorage(), B_AntimatterInBase(), B_BaseHasItem(), B_ItemInBase(), B_LoadXML(), B_ManageAntimatter(), B_PackInitialEquipment(), B_RemoveItemsExceedingCapacity(), B_SaveXML(), B_SetUpFirstBase(), B_UpdateAntimatterCap(), B_UpdateStorageAndCapacity(), B_UpdateStorageCap(), BS_BuyType(), BS_GetMinMaxValueByItemID(), BS_MarketScroll_f(), BS_SellItem_f(), CL_UpdateEquipmentMenuParameters_f(), CP_AddItemAsCollected_f(), CP_MissionEnd(), CP_StartSelectedMission(), PR_UpdateProductionList(), TR_TransferList_Scroll_f(), TR_TransferListSelect_f(), and TR_TransferSelect().