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

client campaign structure More...

#include <cp_campaign.h>

Collaboration diagram for ccs_t:
Collaboration graph

Data Structures

struct  [struct].geoscape

Data Fields

equipDef_t eMission
market_t eMarket
linkedList_t * missions
battleParam_t battleParameters
int lastInterestIncreaseDelay
int overallInterest
int interest [INTERESTCATEGORY_MAX]
int lastMissionSpawnedDelay
int credits
int civiliansKilled
int aliensKilled
class DateTime date
bool startXVI
float timer
float frametime
struct  geoscape
mapAction_t mapAction
vec2_t newBasePos
int gameTimeScale
int gameLapse
bool paid
linkedList_t * employees [MAX_EMPL]
technology_t technologies [MAX_TECHNOLOGIES]
int numTechnologies
base_t bases [MAX_BASES]
int numBases
baseTemplate_t baseTemplates [MAX_BASETEMPLATES]
int numBaseTemplates
linkedList_t * aircraft
linkedList_t * alienBases
linkedList_t * nations
int numNations
linkedList_t * cities
int numCities
aircraftProjectile_t projectiles [MAX_PROJECTILESONGEOSCAPE]
int numProjectiles
linkedList_t * transfers
components_t components [MAX_ASSEMBLIES]
int numComponents
linkedList_t * storedUFOs
alienTeamCategory_t alienCategories [ALIENCATEGORY_MAX]
int numAlienCategories
pediaChapter_t upChapters [MAX_PEDIACHAPTERS]
int numChapters
int numUnreadMails
eventMail_t eventMails [MAX_EVENTMAILS]
int numEventMails
campaignEvents_t campaignEvents [MAX_CAMPAIGNS]
int numCampaignEventDefinitions
campaignTriggerEvent_t campaignTriggerEvents [MAX_CAMPAIGN_TRIGGER_EVENTS]
int numCampaignTriggerEvents
building_t buildingTemplates [MAX_BUILDINGS]
int numBuildingTemplates
building_t buildings [MAX_BASES][MAX_BUILDINGS]
int numBuildings [MAX_BASES]
installationTemplate_t installationTemplates [MAX_INSTALLATION_TEMPLATES]
int numInstallationTemplates
linkedList_t * installations
aircraft_t ufos [MAX_UFOONGEOSCAPE]
int numUFOs
msgCategory_t messageCategories [MAX_MESSAGECATEGORIES]
int numMsgCategories
msgCategoryEntry_t msgCategoryEntries [NT_NUM_NOTIFYTYPE+MAX_MESSAGECATEGORIES]
int numMsgCategoryEntries
rank_t ranks [MAX_RANKS]
int numRanks
technology_t * teamDefTechs [MAX_TEAMDEFS]
technology_t * objDefTechs [MAX_OBJDEFS]
campaign_t * curCampaign
stats_t campaignStats
campaign_t campaigns [MAX_CAMPAIGNS]
int numCampaigns
aircraft_t aircraftTemplates [MAX_AIRCRAFT]
int numAircraftTemplates
missionSpawnFunction_t missionSpawnCallback
missionResultFunction_t missionResultCallback
linkedList_t * updateCharacters

Detailed Description

client campaign structure

See also
csi_t

Definition at line 229 of file cp_campaign.h.

Field Documentation

◆ aircraft

linkedList_t* ccs_t::aircraft

Definition at line 290 of file cp_campaign.h.

Referenced by AIR_Add(), AIR_Delete(), and AIR_Shutdown().

◆ aircraftTemplates

◆ alienBases

linkedList_t* ccs_t::alienBases

◆ alienCategories

alienTeamCategory_t ccs_t::alienCategories[ALIENCATEGORY_MAX]

different alien team available that will be used in mission

Definition at line 318 of file cp_campaign.h.

Referenced by CP_ParseAlienTeam(), CP_SetAlienTeamByInterest(), CP_Shutdown(), and MIS_CreateAlienTeam().

◆ aliensKilled

int ccs_t::aliensKilled

how many aliens were killed already

Definition at line 245 of file cp_campaign.h.

Referenced by CP_LoadXML(), CP_SaveXML(), and GAME_CP_Results().

◆ bases

base_t ccs_t::bases[MAX_BASES]

Definition at line 282 of file cp_campaign.h.

Referenced by B_GetBaseByIDX(), B_GetNext(), and B_SetBaseTitle_f().

◆ baseTemplates

baseTemplate_t ccs_t::baseTemplates[MAX_BASETEMPLATES]

Definition at line 286 of file cp_campaign.h.

Referenced by B_GetBaseTemplate(), and B_ParseBaseTemplate().

◆ battleParameters

battleParam_t ccs_t::battleParameters

Structure used to remember every parameter used during last battle

Definition at line 236 of file cp_campaign.h.

Referenced by AM_Go_f(), CP_MissionRemove(), CP_StartSelectedMission(), GAME_CP_InitMissionBriefing(), GAME_CP_Results(), and GAME_CP_Results_f().

◆ buildings

building_t ccs_t::buildings[MAX_BASES][MAX_BUILDINGS]

Definition at line 342 of file cp_campaign.h.

Referenced by B_BuildingDestroy(), B_GetNextBuilding(), B_LoadXML(), and TEST_F().

◆ buildingTemplates

◆ campaignEvents

campaignEvents_t ccs_t::campaignEvents[MAX_CAMPAIGNS]

holds all campaign events (cl_event.c)

Definition at line 331 of file cp_campaign.h.

Referenced by CL_ParseCampaignEvents(), and CP_GetEventsByID().

◆ campaigns

◆ campaignStats

◆ campaignTriggerEvents

◆ cities

◆ civiliansKilled

int ccs_t::civiliansKilled

how many civilians were killed already

Definition at line 244 of file cp_campaign.h.

Referenced by CP_LoadXML(), and CP_SaveXML().

◆ components

components_t ccs_t::components[MAX_ASSEMBLIES]

Definition at line 311 of file cp_campaign.h.

Referenced by COMP_GetComponentsByID(), and COMP_ParseComponents().

◆ credits

◆ curCampaign

◆ date

class DateTime ccs_t::date

current date

Definition at line 246 of file cp_campaign.h.

Referenced by AB_BaseSearchedByNations(), B_BuildBuilding(), B_GetConstructionTimeRemain(), B_IsBuildingBuiltUp(), CL_EventAddMail(), CP_AdvanceTimeBySeconds(), CP_BaseAttackGoToBase(), CP_BaseAttackMissionLeave(), CP_BeginRescueMission(), CP_BuildBaseSetUpBase(), CP_BuildBaseSubvertGovernment(), CP_CampaignRun(), CP_CampaignRunMarket(), CP_CheckMissionEnd(), CP_CheckTriggerEvent(), CP_CreateNewMission(), CP_EndRescueMission(), CP_HarvestMissionGo(), CP_HarvestMissionStart(), CP_InterceptAircraftMissionSet(), CP_InterceptAttackInstallation(), CP_InterceptNextStage(), CP_LeaveRescueMission(), CP_LoadXML(), CP_MissionBegin(), CP_MissionStageEnd(), CP_ReadCampaignData(), CP_ReconMissionAerial(), CP_ReconMissionGround(), CP_ReconMissionGroundGo(), CP_ReconMissionLeave(), CP_ReduceXVIEverywhere(), CP_SaveXML(), CP_SpawnCrashSiteMission(), CP_SupplySetStayAtBase(), CP_TerrorMissionGo(), CP_TerrorMissionStart(), CP_UFOCarrierMissionStart(), CP_UFOCarrierMissionUpdate(), CP_UpdateTime(), CP_XVIMissionStart(), CreateInstallation(), GEO_Draw(), GEO_IsNight(), INS_Build(), INS_FillUFOYardData_f(), INS_SelectInstallation(), INS_UpdateInstallationData(), MS_AddNewMessage(), RS_MarkCollected(), RS_MarkOneResearchable(), RS_ResearchFinish(), SAV_GameSave(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TR_List_f(), TR_TransferRun(), TR_TransferStart(), UFO_DetectNewUFO(), UR_DialogStartStore_f(), UR_ProcessActive(), US_SelectStoredUfo_f(), US_StoreUFO(), and US_TransferUFO().

◆ eMarket

market_t ccs_t::eMarket

Prices, evolution and number of items on market

Definition at line 232 of file cp_campaign.h.

Referenced by B_SellOrAddItems(), BS_Buy_f(), BS_FillMarket_f(), and BS_SetAutosell_f().

◆ eMission

equipDef_t ccs_t::eMission

this is a copy of the base storage we are starting a mission from. This is needed because we don't want to "waste" items on a retry.

Definition at line 230 of file cp_campaign.h.

Referenced by AII_CarriedItems(), AM_Go(), CP_MissionEnd(), CP_StartSelectedMission(), and GAME_CP_GetEquipmentDefinition().

◆ employees

linkedList_t* ccs_t::employees[MAX_EMPL]

◆ eventMails

eventMail_t ccs_t::eventMails[MAX_EVENTMAILS]

holds all event mails (cl_event.c)

Definition at line 328 of file cp_campaign.h.

Referenced by CL_GetEventMail(), and CL_ParseEventMails().

◆ frametime

float ccs_t::frametime

Definition at line 249 of file cp_campaign.h.

Referenced by CP_CampaignRun(), and GEO_DrawMarkers().

◆ gameLapse

◆ gameTimeScale

int ccs_t::gameTimeScale

Definition at line 265 of file cp_campaign.h.

Referenced by CP_CampaignRun(), CP_UpdateTime(), GEO_DrawMarkers(), and TEST_F().

◆ geoscape

struct ccs_t::[struct].geoscape ccs_t::geoscape

Referenced by GEO_NotifyUFORemoved().

◆ installations

linkedList_t* ccs_t::installations

◆ installationTemplates

◆ interest

int ccs_t::interest[INTERESTCATEGORY_MAX]

interest of aliens: determine which actions aliens will undertake

Definition at line 240 of file cp_campaign.h.

Referenced by AB_DestroyBase(), CP_CreateNewMission(), CP_SelectNewMissionType(), INT_ChangeIndividualInterest(), INT_LoadXML(), INT_ResetAlienInterest(), and INT_SaveXML().

◆ lastInterestIncreaseDelay

int ccs_t::lastInterestIncreaseDelay

How many hours since last increase of alien overall interest

Definition at line 238 of file cp_campaign.h.

Referenced by INT_IncreaseAlienInterest(), INT_LoadXML(), INT_ResetAlienInterest(), and INT_SaveXML().

◆ lastMissionSpawnedDelay

int ccs_t::lastMissionSpawnedDelay

How many days since last mission has been spawned

Definition at line 241 of file cp_campaign.h.

Referenced by CP_InitializeSpawningDelay(), CP_SpawnNewMissions(), INT_LoadXML(), INT_ResetAlienInterest(), and INT_SaveXML().

◆ mapAction

mapAction_t ccs_t::mapAction
Todo
eliminate or move into Lua UI scripts

New installation and base building status

Definition at line 261 of file cp_campaign.h.

Referenced by B_BuildBase_f(), B_SelectBase(), GEO_Click(), GEO_Draw(), GEO_ResetAction(), INS_BuildInstallation_f(), INS_SelectInstallation(), and INS_SelectType_f().

◆ messageCategories

msgCategory_t ccs_t::messageCategories[MAX_MESSAGECATEGORIES]

Definition at line 359 of file cp_campaign.h.

Referenced by MSO_ParseCategory().

◆ missionResultCallback

missionResultFunction_t ccs_t::missionResultCallback

Definition at line 388 of file cp_campaign.h.

Referenced by AM_Go(), and GAME_CP_Results().

◆ missions

linkedList_t* ccs_t::missions

Missions spawned (visible on geoscape or not)

Definition at line 234 of file cp_campaign.h.

Referenced by CP_CreateNewMission(), CP_MissionRemove(), CP_SetMissionName(), MIS_LoadXML(), and MIS_Shutdown().

◆ missionSpawnCallback

missionSpawnFunction_t ccs_t::missionSpawnCallback

Definition at line 387 of file cp_campaign.h.

Referenced by CP_CampaignRun(), CP_InitializeSpawningDelay(), and CP_ResetCampaignData().

◆ msgCategoryEntries

◆ nations

linkedList_t* ccs_t::nations

Definition at line 296 of file cp_campaign.h.

Referenced by CL_ParseNations(), and NAT_Shutdown().

◆ newBasePos

vec2_t ccs_t::newBasePos

Coordinates to place the new base at (long, lat)

Definition at line 262 of file cp_campaign.h.

Referenced by B_BuildBase_f(), GEO_Click(), and INS_BuildInstallation_f().

◆ numAircraftTemplates

◆ numAlienCategories

int ccs_t::numAlienCategories

Definition at line 319 of file cp_campaign.h.

Referenced by CP_ParseAlienTeam(), CP_SetAlienTeamByInterest(), and CP_Shutdown().

◆ numBases

int ccs_t::numBases

Definition at line 283 of file cp_campaign.h.

Referenced by B_Build(), B_GetCount(), and B_LoadXML().

◆ numBaseTemplates

int ccs_t::numBaseTemplates

Definition at line 287 of file cp_campaign.h.

Referenced by B_GetBaseTemplate(), and B_ParseBaseTemplate().

◆ numBuildings

◆ numBuildingTemplates

◆ numCampaignEventDefinitions

int ccs_t::numCampaignEventDefinitions

how many event definitions (script-id: events) parsed

Definition at line 332 of file cp_campaign.h.

Referenced by CL_ParseCampaignEvents(), and CP_GetEventsByID().

◆ numCampaigns

◆ numCampaignTriggerEvents

int ccs_t::numCampaignTriggerEvents

◆ numChapters

int ccs_t::numChapters

Definition at line 325 of file cp_campaign.h.

Referenced by RS_ParseTechnologies(), UP_GenerateSummary(), and UP_ParseChapter().

◆ numCities

int ccs_t::numCities

Definition at line 301 of file cp_campaign.h.

Referenced by CITY_Parse(), CP_ChooseCity(), and CP_ParseCampaignData().

◆ numComponents

int ccs_t::numComponents

Definition at line 312 of file cp_campaign.h.

Referenced by COMP_GetComponentsByID(), and COMP_ParseComponents().

◆ numEventMails

int ccs_t::numEventMails

how many eventmails (script-id: mail) parsed

Definition at line 329 of file cp_campaign.h.

Referenced by CL_GetEventMail(), and CL_ParseEventMails().

◆ numInstallationTemplates

◆ numMsgCategories

int ccs_t::numMsgCategories

Definition at line 360 of file cp_campaign.h.

Referenced by MSO_ParseCategory().

◆ numMsgCategoryEntries

int ccs_t::numMsgCategoryEntries

Definition at line 364 of file cp_campaign.h.

Referenced by MSO_InitList(), and MSO_ParseCategory().

◆ numNations

◆ numProjectiles

◆ numRanks

int ccs_t::numRanks

◆ numTechnologies

◆ numUFOs

◆ numUnreadMails

int ccs_t::numUnreadMails

only for faster access (don't cycle all techs every frame)

Definition at line 326 of file cp_campaign.h.

Referenced by MS_AddNewMessage(), UP_GetUnreadMails(), UP_MailClientClick_f(), UP_SetAllMailsRead_f(), and UP_SetMailHeader().

◆ objDefTechs

technology_t* ccs_t::objDefTechs[MAX_OBJDEFS]

Definition at line 376 of file cp_campaign.h.

Referenced by RS_GetTechForItem(), and RS_InitTree().

◆ overallInterest

◆ paid

bool ccs_t::paid

Definition at line 269 of file cp_campaign.h.

Referenced by CP_CampaignRun(), CP_LoadXML(), CP_SaveXML(), and TEST_F().

◆ projectiles

◆ ranks

rank_t ccs_t::ranks[MAX_RANKS]

Definition at line 368 of file cp_campaign.h.

Referenced by CL_GetRankByIdx(), CL_GetRankIdx(), and CL_ParseRanks().

◆ startXVI

bool ccs_t::startXVI

the aliens are starting to spread XVI

Definition at line 247 of file cp_campaign.h.

Referenced by CP_LoadXML(), and CP_StartXVISpreading_f().

◆ storedUFOs

linkedList_t* ccs_t::storedUFOs

◆ teamDefTechs

technology_t* ccs_t::teamDefTechs[MAX_TEAMDEFS]

Definition at line 373 of file cp_campaign.h.

Referenced by CP_ParseCampaignData(), GAME_CP_TeamIsKnown(), and RS_GetTechForTeam().

◆ technologies

◆ timer

float ccs_t::timer

Definition at line 248 of file cp_campaign.h.

Referenced by CP_CampaignRun().

◆ transfers

linkedList_t* ccs_t::transfers

Definition at line 308 of file cp_campaign.h.

Referenced by TEST_F(), TR_LoadXML(), TR_Shutdown(), TR_TransferEnd(), and TR_TransferStart().

◆ ufos

◆ upChapters

pediaChapter_t ccs_t::upChapters[MAX_PEDIACHAPTERS]

number of alien team categories defined

Definition at line 323 of file cp_campaign.h.

Referenced by RS_ParseTechnologies(), UP_GenerateSummary(), and UP_ParseChapter().

◆ updateCharacters

linkedList_t* ccs_t::updateCharacters

Definition at line 390 of file cp_campaign.h.

Referenced by CP_MissionEnd(), and GAME_CP_Results().


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