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

client campaign structure More...

#include <cp_campaign.h>

Data Fields

equipDef_t eMission
 
market_t eMarket
 
linkedList_tmissions
 
battleParam_t battleParameters
 
int lastInterestIncreaseDelay
 
int overallInterest
 
int interest [INTERESTCATEGORY_MAX]
 
int lastMissionSpawnedDelay
 
int credits
 
int civiliansKilled
 
int aliensKilled
 
date_t date
 
bool startXVI
 
float timer
 
float frametime
 
struct {
   struct mission_s *   selectedMission
 
   aircraft_t *   selectedAircraft
 
   aircraft_t *   selectedUFO
 
   aircraft_t *   interceptAircraft
 
   aircraft_t *   missionAircraft
 
geoscape
 
mapAction_t mapAction
 
vec2_t newBasePos
 
int gameTimeScale
 
int gameLapse
 
bool paid
 
linkedList_temployees [MAX_EMPL]
 
technology_t technologies [MAX_TECHNOLOGIES]
 
int numTechnologies
 
base_t bases [MAX_BASES]
 
int numBases
 
baseTemplate_t baseTemplates [MAX_BASETEMPLATES]
 
int numBaseTemplates
 
linkedList_taircraft
 
linkedList_talienBases
 
linkedList_tnations
 
int numNations
 
linkedList_tcities
 
int numCities
 
aircraftProjectile_t projectiles [MAX_PROJECTILESONGEOSCAPE]
 
int numProjectiles
 
linkedList_ttransfers
 
components_t components [MAX_ASSEMBLIES]
 
int numComponents
 
linkedList_tstoredUFOs
 
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_tinstallations
 
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_tteamDefTechs [MAX_TEAMDEFS]
 
technology_tobjDefTechs [MAX_OBJDEFS]
 
campaign_tcurCampaign
 
stats_t campaignStats
 
campaign_t campaigns [MAX_CAMPAIGNS]
 
int numCampaigns
 
aircraft_t aircraftTemplates [MAX_AIRCRAFT]
 
int numAircraftTemplates
 
missionSpawnFunction_t missionSpawnCallback
 
missionResultFunction_t missionResultCallback
 
linkedList_tupdateCharacters
 

Detailed Description

client campaign structure

See also
csi_t

Definition at line 228 of file cp_campaign.h.

Field Documentation

linkedList_t* ccs_s::aircraft

Definition at line 289 of file cp_campaign.h.

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

linkedList_t* ccs_s::alienBases
alienTeamCategory_t ccs_s::alienCategories[ALIENCATEGORY_MAX]

different alien team available that will be used in mission

Definition at line 317 of file cp_campaign.h.

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

int ccs_s::aliensKilled

how many aliens were killed already

Definition at line 244 of file cp_campaign.h.

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

base_t ccs_s::bases[MAX_BASES]

Definition at line 281 of file cp_campaign.h.

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

baseTemplate_t ccs_s::baseTemplates[MAX_BASETEMPLATES]

Definition at line 285 of file cp_campaign.h.

Referenced by B_GetBaseTemplate(), and B_ParseBaseTemplate().

battleParam_t ccs_s::battleParameters

Structure used to remember every parameter used during last battle

Definition at line 235 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().

building_t ccs_s::buildings[MAX_BASES][MAX_BUILDINGS]

Definition at line 341 of file cp_campaign.h.

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

campaignEvents_t ccs_s::campaignEvents[MAX_CAMPAIGNS]

holds all campaign events (cl_event.c)

Definition at line 330 of file cp_campaign.h.

Referenced by CL_ParseCampaignEvents(), and CP_GetEventsByID().

int ccs_s::civiliansKilled

how many civilians were killed already

Definition at line 243 of file cp_campaign.h.

Referenced by CP_LoadXML(), and CP_SaveXML().

components_t ccs_s::components[MAX_ASSEMBLIES]

Definition at line 310 of file cp_campaign.h.

Referenced by COMP_GetComponentsByID(), and COMP_ParseComponents().

market_t ccs_s::eMarket

Prices, evolution and number of items on market

Definition at line 231 of file cp_campaign.h.

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

equipDef_t ccs_s::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 229 of file cp_campaign.h.

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

linkedList_t* ccs_s::employees[MAX_EMPL]
eventMail_t ccs_s::eventMails[MAX_EVENTMAILS]

holds all event mails (cl_event.c)

Definition at line 327 of file cp_campaign.h.

Referenced by CL_GetEventMail(), and CL_ParseEventMails().

float ccs_s::frametime

Definition at line 248 of file cp_campaign.h.

Referenced by CP_CampaignRun(), and GEO_DrawMarkers().

int ccs_s::gameTimeScale

Definition at line 264 of file cp_campaign.h.

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

struct { ... } ccs_s::geoscape

Referenced by GEO_NotifyUFORemoved().

linkedList_t* ccs_s::installations
aircraft_t* ccs_s::interceptAircraft

selected aircraft for interceptions

Definition at line 254 of file cp_campaign.h.

int ccs_s::interest[INTERESTCATEGORY_MAX]

interest of aliens: determine which actions aliens will undertake

Definition at line 239 of file cp_campaign.h.

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

int ccs_s::lastInterestIncreaseDelay

How many hours since last increase of alien overall interest

Definition at line 237 of file cp_campaign.h.

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

int ccs_s::lastMissionSpawnedDelay

How many days since last mission has been spawned

Definition at line 240 of file cp_campaign.h.

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

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

New installation and base building status

Definition at line 260 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().

msgCategory_t ccs_s::messageCategories[MAX_MESSAGECATEGORIES]

Definition at line 358 of file cp_campaign.h.

Referenced by MSO_ParseCategory().

aircraft_t* ccs_s::missionAircraft

aircraft pointer for mission handling

Definition at line 255 of file cp_campaign.h.

missionResultFunction_t ccs_s::missionResultCallback

Definition at line 387 of file cp_campaign.h.

Referenced by AM_Go(), and GAME_CP_Results().

linkedList_t* ccs_s::missions

Missions spawned (visible on geoscape or not)

Definition at line 233 of file cp_campaign.h.

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

missionSpawnFunction_t ccs_s::missionSpawnCallback

Definition at line 386 of file cp_campaign.h.

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

linkedList_t* ccs_s::nations

Definition at line 295 of file cp_campaign.h.

Referenced by CL_ParseNations(), and NAT_Shutdown().

vec2_t ccs_s::newBasePos

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

Definition at line 261 of file cp_campaign.h.

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

int ccs_s::numAlienCategories

Definition at line 318 of file cp_campaign.h.

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

int ccs_s::numBases

Definition at line 282 of file cp_campaign.h.

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

int ccs_s::numBaseTemplates

Definition at line 286 of file cp_campaign.h.

Referenced by B_GetBaseTemplate(), and B_ParseBaseTemplate().

int ccs_s::numCampaignEventDefinitions

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

Definition at line 331 of file cp_campaign.h.

Referenced by CL_ParseCampaignEvents(), and CP_GetEventsByID().

int ccs_s::numCampaignTriggerEvents
int ccs_s::numChapters

Definition at line 324 of file cp_campaign.h.

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

int ccs_s::numCities

Definition at line 300 of file cp_campaign.h.

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

int ccs_s::numComponents

Definition at line 311 of file cp_campaign.h.

Referenced by COMP_GetComponentsByID(), and COMP_ParseComponents().

int ccs_s::numEventMails

how many eventmails (script-id: mail) parsed

Definition at line 328 of file cp_campaign.h.

Referenced by CL_GetEventMail(), and CL_ParseEventMails().

int ccs_s::numMsgCategories

Definition at line 359 of file cp_campaign.h.

Referenced by MSO_ParseCategory().

int ccs_s::numMsgCategoryEntries

Definition at line 363 of file cp_campaign.h.

Referenced by MSO_InitList(), and MSO_ParseCategory().

int ccs_s::numRanks
int ccs_s::numUnreadMails

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

Definition at line 325 of file cp_campaign.h.

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

technology_t* ccs_s::objDefTechs[MAX_OBJDEFS]

Definition at line 375 of file cp_campaign.h.

Referenced by RS_GetTechForItem(), and RS_InitTree().

int ccs_s::overallInterest
bool ccs_s::paid

Definition at line 268 of file cp_campaign.h.

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

rank_t ccs_s::ranks[MAX_RANKS]

Definition at line 367 of file cp_campaign.h.

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

aircraft_t* ccs_s::selectedAircraft

Currently selected aircraft on geoscape

Definition at line 252 of file cp_campaign.h.

struct mission_s* ccs_s::selectedMission

Currently selected mission on geoscape

Definition at line 251 of file cp_campaign.h.

aircraft_t* ccs_s::selectedUFO

Currently selected UFO on geoscape

Definition at line 253 of file cp_campaign.h.

Referenced by GEO_NotifyUFORemoved().

bool ccs_s::startXVI

the aliens are starting to spread XVI

Definition at line 246 of file cp_campaign.h.

Referenced by CP_LoadXML(), and CP_StartXVISpreading_f().

linkedList_t* ccs_s::storedUFOs
technology_t* ccs_s::teamDefTechs[MAX_TEAMDEFS]

Definition at line 372 of file cp_campaign.h.

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

float ccs_s::timer

Definition at line 247 of file cp_campaign.h.

Referenced by CP_CampaignRun().

linkedList_t* ccs_s::transfers

Definition at line 307 of file cp_campaign.h.

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

pediaChapter_t ccs_s::upChapters[MAX_PEDIACHAPTERS]

number of alien team categories defined

Definition at line 322 of file cp_campaign.h.

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

linkedList_t* ccs_s::updateCharacters

Definition at line 389 of file cp_campaign.h.

Referenced by CP_MissionEnd(), and GAME_CP_Results().


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