UFO: Alien Invasion
Loading...
Searching...
No Matches
cp_campaign.h File Reference

Header file for single player campaign control. More...

#include "../../DateTime.h"
#include "cp_cgame_callbacks.h"
#include "cp_alien_interest.h"
#include "cp_rank.h"
#include "cp_save.h"
#include "cp_parse.h"
#include "cp_event.h"
#include "cp_ufopedia.h"
#include "cp_research.h"
#include "cp_radar.h"
#include "cp_aircraft.h"
#include "cp_base.h"
#include "cp_employee.h"
#include "cp_transfer.h"
#include "cp_nation.h"
#include "cp_installation.h"
#include "cp_produce.h"
#include "cp_uforecovery.h"
#include "cp_airfight.h"
#include "cp_messageoptions.h"
#include "cp_alienbase.h"
#include "cp_market.h"
#include "cp_statistics.h"
#include "cp_component.h"
#include "../cgame.h"
Include dependency graph for cp_campaign.h:

Go to the source code of this file.

Data Structures

struct  alienTeamGroup_t
 alien team group definition. More...
struct  alienTeamCategory_t
 alien team category definition More...
struct  battleParam_t
struct  salary_t
struct  campaign_t
struct  ccs_t
 client campaign structure More...
struct  screenPoint_t

Macros

#define MAX_CAMPAIGNS   16
#define MAX_ALIEN_GROUP_PER_CATEGORY   8
#define ALIENCATEGORY_MAX   64
#define MAX_PROJECTILESONGEOSCAPE   32
#define HOURS_PER_ONE_INTEREST   24
 The amount of time (in hours) it takes for the interest to increase by 1. Is later affected by difficulty.
#define INITIAL_OVERALL_INTEREST   20
 Determines the interest interval for a single campaign.
#define FINAL_OVERALL_INTEREST   400
#define DELAY_BETWEEN_MISSION_SPAWNING   12
 The length of a single mission spawn cycle.
#define EARLY_UFO_RUSH_INTEREST   50
 Determines the early game period during which DELAY_BETWEEN_MISSION_SPAWNING is halved.
#define NON_OCCURRENCE_PROBABILITY   0.75
 The probability that any new alien mission will be a non-occurrence mission.
#define MAX_CREDITS   10000000

Typedefs

typedef void(* missionSpawnFunction_t) (void)
typedef void(* missionResultFunction_t) (const struct missionResults_s *results)

Enumerations

enum  mapType_t {
  MAPTYPE_TERRAIN , MAPTYPE_CULTURE , MAPTYPE_POPULATION , MAPTYPE_NATIONS ,
  MAPTYPE_MAX
}
enum  mapAction_t { MA_NONE , MA_NEWBASE , MA_NEWINSTALLATION }

Functions

int CP_GetSalaryUpKeepBase (const salary_t *salary, const base_t *base)
void CP_InitStartup (void)
campaign_tCP_GetCampaign (const char *name)
 Returns the campaign pointer from global campaign array.
void CP_CampaignInit (campaign_t *campaign, bool load)
 Called at new game and load game.
void CP_ParseCampaignData (void)
 Read the data for campaigns.
void CP_ReadCampaignData (const campaign_t *campaign)
bool CP_IsRunning (void)
 Checks whether a campaign mode game is running.
void CP_CampaignRun (campaign_t *campaign, float secondsSinceLastFrame)
 Called every frame when we are in geoscape view.
void CP_CheckLostCondition (const campaign_t *campaign)
 Checks whether the player has lost the campaign.
void CP_EndCampaign (bool won)
 Function to handle the campaign end.
void CP_Shutdown (void)
 Campaign closing actions.
void CP_ResetCampaignData (void)
 Will clear most of the parsed singleplayer data.
void CP_StartSelectedMission (void)
 Starts a selected mission.
bool CP_CheckCredits (int costs)
 Checks whether you have enough credits for something.
void CP_UpdateCredits (int credits)
 Sets credits and update mn_credits cvar.
bool CP_OnGeoscape (void)
 Returns if we are currently on the Geoscape.

Variables

memPool_tcp_campaignPool
ccs_t ccs
const int DETECTION_INTERVAL
 delay between actions that must be executed independently of time scale
cvar_tcp_missiontest
const cgame_import_tcgi

Detailed Description

Header file for single player campaign control.

Definition in file cp_campaign.h.

Macro Definition Documentation

◆ ALIENCATEGORY_MAX

#define ALIENCATEGORY_MAX   64

Definition at line 61 of file cp_campaign.h.

Referenced by CP_ParseAlienTeam().

◆ DELAY_BETWEEN_MISSION_SPAWNING

#define DELAY_BETWEEN_MISSION_SPAWNING   12

The length of a single mission spawn cycle.

Definition at line 78 of file cp_campaign.h.

Referenced by CP_InitializeSpawningDelay(), and CP_SpawnNewMissions().

◆ EARLY_UFO_RUSH_INTEREST

#define EARLY_UFO_RUSH_INTEREST   50

Determines the early game period during which DELAY_BETWEEN_MISSION_SPAWNING is halved.

Note
This is done to ensure the player is not bored early in the game. The rush will stop when alien interest reaches this level.

Definition at line 84 of file cp_campaign.h.

Referenced by CP_SpawnNewMissions().

◆ FINAL_OVERALL_INTEREST

#define FINAL_OVERALL_INTEREST   400

Definition at line 73 of file cp_campaign.h.

Referenced by CP_SpawnNewMissions().

◆ HOURS_PER_ONE_INTEREST

#define HOURS_PER_ONE_INTEREST   24

The amount of time (in hours) it takes for the interest to increase by 1. Is later affected by difficulty.

Definition at line 67 of file cp_campaign.h.

Referenced by INT_IncreaseAlienInterest().

◆ INITIAL_OVERALL_INTEREST

#define INITIAL_OVERALL_INTEREST   20

Determines the interest interval for a single campaign.

Definition at line 72 of file cp_campaign.h.

Referenced by CP_ParseCampaign().

◆ MAX_ALIEN_GROUP_PER_CATEGORY

#define MAX_ALIEN_GROUP_PER_CATEGORY   8

Definition at line 59 of file cp_campaign.h.

Referenced by CP_ParseAlienTeam().

◆ MAX_CAMPAIGNS

#define MAX_CAMPAIGNS   16

Definition at line 31 of file cp_campaign.h.

Referenced by CL_ParseCampaignEvents(), and CP_ParseCampaign().

◆ MAX_CREDITS

#define MAX_CREDITS   10000000

Definition at line 401 of file cp_campaign.h.

Referenced by CP_UpdateCredits(), and CampaignTest::SetUp().

◆ MAX_PROJECTILESONGEOSCAPE

#define MAX_PROJECTILESONGEOSCAPE   32

Definition at line 62 of file cp_campaign.h.

Referenced by AIRFIGHT_AddProjectile(), and AIRFIGHT_LoadXML().

◆ NON_OCCURRENCE_PROBABILITY

#define NON_OCCURRENCE_PROBABILITY   0.75

The probability that any new alien mission will be a non-occurrence mission.

Definition at line 89 of file cp_campaign.h.

Referenced by CP_ParseCampaign().

Typedef Documentation

◆ missionResultFunction_t

typedef void(* missionResultFunction_t) (const struct missionResults_s *results)

Definition at line 223 of file cp_campaign.h.

◆ missionSpawnFunction_t

typedef void(* missionSpawnFunction_t) (void)

Definition at line 222 of file cp_campaign.h.

Enumeration Type Documentation

◆ mapAction_t

possible geoscape actions

Enumerator
MA_NONE 
MA_NEWBASE 

build a new base

MA_NEWINSTALLATION 

build a new installation

Definition at line 216 of file cp_campaign.h.

◆ mapType_t

enum mapType_t

possible map types

Enumerator
MAPTYPE_TERRAIN 
MAPTYPE_CULTURE 
MAPTYPE_POPULATION 
MAPTYPE_NATIONS 
MAPTYPE_MAX 

Definition at line 92 of file cp_campaign.h.

Function Documentation

◆ CP_CampaignInit()

void CP_CampaignInit ( campaign_t * campaign,
bool load )

Called at new game and load game.

Parameters
[in]loadtrue if we are loading game, false otherwise
[in]campaignPointer to campaign - it will be set to ccs.curCampaign here.

< Initialise all data in the research tree.

Definition at line 765 of file cp_campaign.cpp.

References B_SelectBase(), BS_InitMarket(), ccs, cgi, CL_EventAddMail(), CL_PopupInit(), CP_AddCampaignCommands(), CP_GameTimeStop(), CP_InitializeSpawningDelay(), CP_InitializeXVIOverlay(), CP_ReadCampaignData(), CP_ScriptSanityCheck(), CP_UpdateCredits(), CP_UpdateTime(), CP_UpdateXVIMapButton(), CP_XVIInit(), campaign_t::credits, E_InitialEmployees(), GEO_Reset(), INT_ResetAlienInterest(), campaign_t::map, RS_InitTree(), and RS_MarkResearchable().

Referenced by CP_LoadXML(), and GAME_CP_Start_f().

◆ CP_CampaignRun()

◆ CP_CheckCredits()

bool CP_CheckCredits ( int costs)

Checks whether you have enough credits for something.

Parameters
[in]costscosts to check

Definition at line 353 of file cp_campaign.cpp.

References ccs.

Referenced by B_BuildBuilding(), and B_BuildBuilding_f().

◆ CP_CheckLostCondition()

void CP_CheckLostCondition ( const campaign_t * campaign)

Checks whether the player has lost the campaign.

Todo
Should we make the campaign lost when a player loses all his bases? until he has set up a base again, the aliens might have invaded the whole world ;) - i mean, removing the credits check here.

Definition at line 101 of file cp_campaign.cpp.

References _, B_AtLeastOneExists, campaign_t::basecost, ccs, cgi, CP_EndCampaign(), CP_GetAverageXVIRate(), cp_missiontest, nationInfo_t::happiness, campaign_t::maxAllowedXVIRateUntilLost, campaign_t::minhappiness, NAT_Foreach, NAT_GetCurrentMonthInfo(), NATIONBELOWLIMITPERCENTAGE, campaign_t::negativeCreditsUntilLost, and TEXT_STANDARD.

Referenced by CP_CampaignRun(), and CP_MissionEnd().

◆ CP_EndCampaign()

void CP_EndCampaign ( bool won)

Function to handle the campaign end.

Parameters
[in]wonIf the player won the game

Definition at line 89 of file cp_campaign.cpp.

References cgi.

Referenced by CP_AttackUFOCarrier_f(), CP_CheckLostCondition(), and CP_EndGame_f().

◆ CP_GetCampaign()

campaign_t * CP_GetCampaign ( const char * name)

Returns the campaign pointer from global campaign array.

Parameters
nameName of the campaign
Returns
campaign_t pointer to campaign with name or nullptr if not found

Definition at line 860 of file cp_campaign.cpp.

References ccs, cgi, i, campaign_t::id, name, and Q_streq.

Referenced by CP_LoadXML(), CP_ParseCampaign(), GAME_CP_CampaignDescription_f(), GAME_CP_Start_f(), and GetCampaign().

◆ CP_GetSalaryUpKeepBase()

int CP_GetSalaryUpKeepBase ( const salary_t * salary,
const base_t * base )

◆ CP_InitStartup()

◆ CP_IsRunning()

bool CP_IsRunning ( void )

Checks whether a campaign mode game is running.

Definition at line 80 of file cp_campaign.cpp.

References ccs.

Referenced by CP_Shutdown(), GAME_CP_Frame(), GAME_CP_Start_f(), GEO_Draw(), SAV_GameContinue_f(), SAV_GameQuickSave_f(), and SAV_GameSaveAllowed().

◆ CP_OnGeoscape()

bool CP_OnGeoscape ( void )

Returns if we are currently on the Geoscape.

Todo
This relies on scripted content. Should work other way!

Definition at line 199 of file cp_campaign.cpp.

References cgi, and Q_streq.

Referenced by CP_AllowTimeScale(), CP_GameTimeStop(), and GAME_CP_Frame().

◆ CP_ParseCampaignData()

◆ CP_ReadCampaignData()

void CP_ReadCampaignData ( const campaign_t * campaign)

◆ CP_ResetCampaignData()

◆ CP_Shutdown()

◆ CP_StartSelectedMission()

void CP_StartSelectedMission ( void )

◆ CP_UpdateCredits()

void CP_UpdateCredits ( int credits)

Sets credits and update mn_credits cvar.

Parameters
[in]creditsThe new credits value Checks whether credits are bigger than MAX_CREDITS

Definition at line 365 of file cp_campaign.cpp.

References _, ccs, cgi, and MAX_CREDITS.

Referenced by B_BaseInit_f(), B_BuildBase_f(), B_BuildBuilding(), B_BuildingDestroy(), B_SetUpFirstBase(), BS_BuyAircraft(), BS_BuyItem(), BS_BuyUGV(), BS_ProcessCraftItemSale(), BS_SellAircraft(), BS_SellItem(), BS_SellUGV(), CP_CampaignInit(), CP_LoadXML(), INS_BuildInstallation_f(), NAT_HandleBudget(), PR_FinishProduction(), CampaignTest::SetUp(), and UR_DialogStartSell_f().

Variable Documentation

◆ ccs

ccs_t ccs
extern

Definition at line 63 of file cp_campaign.cpp.

Referenced by AB_BaseSearchedByNations(), AB_BuildBase(), AB_DestroyBase(), AB_GetAlienBaseNumber(), AB_LoadXML(), AB_Shutdown(), AII_CarriedItems(), AIR_Add(), AIR_Delete(), AIR_GetAircraftSilent(), AIR_LoadAircraftXML(), AIR_LoadXML(), AIR_NewAircraft(), AIR_ParseAircraft(), AIR_ScriptSanityCheck(), AIR_Shutdown(), AIRFIGHT_AddProjectile(), AIRFIGHT_BaseShoot(), AIRFIGHT_CampaignRunProjectiles(), AIRFIGHT_ExecuteActions(), AIRFIGHT_InstallationShoot(), AIRFIGHT_LoadXML(), AIRFIGHT_RemoveProjectile(), AIRFIGHT_RemoveProjectileAimingAircraft(), AIRFIGHT_SaveXML(), AIRFIGHT_UpdateProjectileForDestroyedAircraft(), AL_AddAliens(), AM_Go(), AM_Go_f(), B_BaseInit_f(), B_Build(), B_BuildBase_f(), B_BuildBuilding(), B_BuildFromTemplate(), B_BuildingDestroy(), B_BuildingScriptSanityCheck(), B_Destroy(), B_GetBaseByIDX(), B_GetBaseTemplate(), B_GetBuildingTemplateByType(), B_GetBuildingTemplateSilent(), B_GetConstructionTimeRemain(), B_GetCount(), B_GetNext(), B_GetNextBuilding(), B_InitCallbacks(), B_IsBuildingBuiltUp(), B_IsBuildingDestroyable(), B_ListBuildings_f(), B_LoadXML(), B_ParseBaseTemplate(), B_ParseBuildings(), B_SelectBase(), B_SellOrAddItems(), B_SetBaseTitle_f(), B_SetUpFirstBase(), B_UpdateBaseCapacities(), BATTLE_Start(), BS_Buy_f(), BS_BuyAircraft(), BS_BuyItem(), BS_BuyUGV(), BS_FillMarket_f(), BS_ProcessCraftItemSale(), BS_SellAircraft(), BS_SellItem(), BS_SellUGV(), BS_SetAutosell_f(), CHAR_UpdateStats(), CITY_GetById(), CITY_GetByPos(), CITY_Parse(), CL_EventAddMail(), CL_GetEventMail(), CL_GetRankByIdx(), CL_GetRankIdx(), CL_ParseCampaignEvents(), CL_ParseEventMails(), CL_ParseNations(), CL_ParseRanks(), COMP_GetComponentsByID(), COMP_ParseComponents(), CP_AdvanceTimeBySeconds(), CP_AllowTimeScale(), CP_AttackUFOCarrier_f(), CP_BaseAttackGoToBase(), CP_BaseAttackMissionLeave(), CP_BaseAttackStartMission(), CP_BasemissionIsSubvertingGovernmentMission(), CP_BeginRescueMission(), CP_BuildBaseSetUpBase(), CP_BuildBaseSubvertGovernment(), CP_CampaignInit(), CP_CampaignRun(), CP_CampaignRunMarket(), CP_ChangeNationHappiness_f(), CP_CheckCampaignEvents(), CP_CheckCredits(), CP_CheckLostCondition(), CP_CheckMissionEnd(), CP_CheckTriggerEvent(), CP_ChooseCity(), CP_CreateNewMission(), CP_EndRescueMission(), CP_GameTimeFast(), CP_GameTimeSlow(), CP_GameTimeStop(), CP_GetAverageXVIRate(), CP_GetCampaign(), CP_GetEventsByID(), CP_HarvestMissionGo(), CP_HarvestMissionStart(), CP_InitializeSpawningDelay(), CP_InterceptAircraftMissionSet(), CP_InterceptAttackInstallation(), CP_InterceptNextStage(), CP_IsRunning(), CP_IsTimeStopped(), CP_LeaveRescueMission(), CP_LoadXML(), CP_MissionBegin(), CP_MissionEnd(), CP_MissionRemove(), CP_MissionStageEnd(), CP_ParseAlienTeam(), CP_ParseCampaign(), CP_ParseCampaignData(), CP_ParseEventTrigger(), CP_ParseResearchableCampaignStates(), CP_ParseResearchedCampaignItems(), CP_ReadCampaignData(), CP_ReconMissionAerial(), CP_ReconMissionGround(), CP_ReconMissionGroundGo(), CP_ReconMissionLeave(), CP_ReduceXVIEverywhere(), CP_ResetCampaignData(), CP_SaveXML(), CP_SelectNewMissionType(), CP_SetAlienTeamByInterest(), CP_SetGameTime(), CP_SetMissionName(), CP_Shutdown(), CP_SpawnCrashSiteMission(), CP_SpawnNewMissions(), CP_StartSelectedMission(), CP_StartXVISpreading_f(), CP_SupplySetStayAtBase(), CP_TerrorMissionGo(), CP_TerrorMissionStart(), CP_TriggerEvent(), CP_TriggerEventLoadXML(), CP_TriggerEventSaveXML(), CP_UFOCarrierMissionStart(), CP_UFOCarrierMissionUpdate(), CP_UpdateCredits(), CP_UpdateNationXVIInfection(), CP_UpdateTime(), CP_XVIMissionStart(), CreateBase(), CreateInstallation(), E_CountByType(), E_CreateEmployee(), E_DeleteEmployee(), E_LoadXML(), E_Shutdown(), GAME_CP_CampaignDescription_f(), GAME_CP_Frame(), GAME_CP_GetCampaigns_f(), GAME_CP_GetEquipmentDefinition(), GAME_CP_GetTeamDef(), GAME_CP_InitMissionBriefing(), GAME_CP_Results(), GAME_CP_Results_f(), GAME_CP_TeamIsKnown(), GEO_Click(), GEO_Draw(), GEO_DrawMarkers(), GEO_IsNight(), GEO_NotifyUFORemoved(), GEO_ResetAction(), HOS_HealCharacter(), INS_Build(), INS_BuildInstallation_f(), INS_DestroyInstallation(), INS_FillTypes_f(), INS_FillUFOYardData_f(), INS_GetCount(), INS_GetInstallationTemplateByID(), INS_GetInstallationTemplateByType(), INS_LinkTechnologies(), INS_LoadXML(), INS_ParseInstallations(), INS_SelectInstallation(), INS_SelectType_f(), INS_SetInstallationTitle(), INS_Shutdown(), INS_UpdateInstallationData(), INT_ChangeIndividualInterest(), INT_IncreaseAlienInterest(), INT_LoadXML(), INT_ResetAlienInterest(), INT_SaveXML(), MIS_CreateAlienTeam(), MIS_LoadXML(), MIS_Shutdown(), MS_AddNewMessage(), MSO_InitList(), MSO_ParseCategory(), MSO_Toggle_f(), MSO_UpdateVisibleButtons(), NAT_GetRandom(), NAT_HandleBudget(), NAT_ScriptSanityCheck(), NAT_Shutdown(), PR_CalculateTotalFrames(), PR_CheckFrame(), PR_FinishProduction(), PR_GetPrice(), PR_UpdateProductionList(), RS_CheckRequirements(), RS_CountScientistsInBase(), RS_FillTechnologyList_f(), RS_GetTechByIDX(), RS_GetTechForItem(), RS_GetTechForTeam(), RS_GetTechWithMostScientists(), RS_InitTree(), RS_IsResearched_idx(), RS_IsValidTechIndex(), RS_MarkCollected(), RS_MarkOneResearchable(), RS_MarkResearchable(), RS_ParseTechnologies(), RS_RequiredLinksAssign(), RS_ResearchFinish(), RS_ResearchRun(), RS_SaveXML(), RS_ScriptSanityCheck(), RS_ShowActiveResearch_f(), Employee::salary(), SAV_GameSave(), CampaignTest::SetUp(), STAT_GetExpenses_f(), STATS_LoadXML(), STATS_SaveXML(), STATS_Update_f(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TR_DestinationCapacityList_f(), TR_List_f(), TR_LoadXML(), TR_Shutdown(), TR_TransferEnd(), TR_TransferRun(), TR_TransferStart(), UFO_CampaignRunUFOs(), UFO_CreateFromTemplate(), UFO_DetectNewUFO(), UFO_GeoSelectUFO_f(), UFO_GetByIDX(), UFO_GetByType(), UFO_GetNext(), UFO_GetTemplate(), UFO_GetTemplateForGeoscape(), UFO_NotifyPhalanxAircraftRemoved(), UFO_RemoveFromGeoscape(), UFO_ShouldAppearOnGeoscape(), UP_Click_f(), UP_GenerateSummary(), UP_GetUnreadMails(), UP_MailClientClick_f(), UP_ParseChapter(), UP_SetAllMailsRead_f(), UP_SetMailHeader(), UR_DialogStartSell_f(), UR_DialogStartStore_f(), UR_ProcessActive(), UR_Shutdown(), US_LoadXML(), US_RemoveStoredUFO(), US_SelectStoredUfo_f(), US_StoredUFOCount(), US_StoreUFO(), and US_TransferUFO().

◆ cgi

const cgame_import_t* cgi
extern

Definition at line 39 of file cp_cgame_callbacks.cpp.

Referenced by _Mem_Alloc(), AB_ChooseBaseToSupply(), AB_DestroyBase(), AB_GetAlienBaseNumber(), AB_InitStartup(), AB_LoadXML(), AB_SaveXML(), AB_Shutdown(), AC_Init_f(), AC_InitCallbacks(), AC_InitStartup(), AC_KillAll_f(), AC_KillExceeding_f(), AC_KillOne_f(), AC_LoadXML(), AC_ShutdownCallbacks(), AlienCargo::add(), AlienCargo::add(), AlienContainment::add(), ItemCargo::add(), AII_AddAmmoToSlot(), AII_AddItemToSlot(), AII_CollectingItems(), AII_GetCraftitemTechsByType(), AII_LoadOneSlotXML(), AII_ReloadWeapon(), AII_RepairAircraft(), AII_SaveOneSlotXML(), AII_SelectAircraftSlot(), AIM_AircraftEquipMenuClick_f(), AIM_AircraftEquipMenuUpdate(), AIM_AircraftEquipMenuUpdate_f(), AIM_AircraftEquipSlotSelect_f(), AIM_AircraftEquipZoneSelect_f(), AIM_AircraftItemtypeByName_f(), AIM_AircraftReturnToBase_f(), AIM_AircraftStart_f(), AIM_AutoEquipAircraft(), AIM_DrawAircraftSlots(), AIM_EmphazeAmmoSlotText(), AIM_InitCallbacks(), AIM_NoEmphazeAmmoSlotText(), AIM_SelectAircraft_f(), AIM_ShutdownCallbacks(), AIM_UpdateAircraftItemList(), AIM_UpdateItemDescription(), AIR_AddToAircraftTeam(), AIR_AircraftFillList_f(), AIR_AircraftGetFromIDX(), AIR_AircraftSelect(), AIR_AircraftStatusToName(), AIR_AssignInitial(), AIR_ChangeAircraftName_f(), AIR_Delete(), AIR_DeleteAircraft(), AIR_DestroyAircraft(), AIR_GeoSelectAircraft_f(), AIR_GetAircraft(), AIR_GetDestinationFindRoot(), AIR_GetDestinationWhilePursuing(), AIR_GetSlotItems(), AIR_GetTeamSize(), AIR_InitCallbacks(), AIR_InitStartup(), AIR_IsAircraftOnGeoscape(), AIR_IsInAircraftTeam(), AIR_LoadAircraftSlotsXML(), AIR_LoadAircraftXML(), AIR_LoadRouteXML(), AIR_LoadXML(), AIR_Move(), AIR_MoveAircraftIntoNewHomebase(), AIR_MoveEmployeeInventoryIntoStorage(), AIR_NewAircraft(), AIR_ParseAircraft(), AIR_PilotSurvivedCrash(), AIR_PostLoadInitMissions(), AIR_RemoveEmployee(), AIR_RemoveEmployees(), AIR_ResetAircraftTeam(), AIR_SaveAircraftSlotsXML(), AIR_SaveAircraftXML(), AIR_SaveRouteXML(), AIR_SaveXML(), AIR_ScriptSanityCheck(), AIR_SendAircraftPursuingUFO(), AIR_SendAircraftToMission(), AIR_SendAircraftToMission_f(), AIR_ShowAircraft_f(), AIR_ShowChangeHomebaseAircraft_f(), AIR_Shutdown(), AIR_ShutdownCallbacks(), AIR_StopAircraft_f(), AIRFIGHT_ActionsAfterAirfight(), AIRFIGHT_AddProjectile(), AIRFIGHT_ExecuteActions(), AIRFIGHT_InitStartup(), AIRFIGHT_LoadXML(), AIRFIGHT_ProbabilityToHit(), AIRFIGHT_ProjectileHits(), AIRFIGHT_SaveXML(), AL_AddAliens(), AlienCargo::AlienCargo(), AM_CalculateTeamScores(), AM_Check_f(), AM_CheckFire(), AM_CreateUnitChr(), AM_DestroyUnitChr(), AM_DisplayResults(), AM_DoFight(), AM_FillTeamFromAircraft(), AM_FillTeamFromBattleParams(), AM_Go(), AM_Go_f(), AM_UpdateSurivorsAfterBattle(), B_AddAntimatter(), B_AddBlockedTile(), B_AddBuildingToBasePos(), B_AntimatterInBase(), B_AssembleMap(), B_AssembleMap_f(), B_BaseInit_f(), B_Build(), B_BuildBase_f(), B_BuildBuilding(), B_BuildBuilding_f(), B_BuildFromTemplate(), B_BuildingDestroy(), B_BuildingDestroy_f(), B_BuildingOpenAfterClick_f(), B_BuildingScriptSanityCheck(), B_ChangeBaseName_f(), B_CheckBuildingConstruction(), B_CheckUpdateBuilding(), B_Destroy_AntimaterStorage_f(), B_FillBuildingInfo_f(), B_FillMap_f(), B_FireEvent(), B_GetBaseTemplate(), B_GetBuildingStatus(), B_GetBuildingTemplate(), B_GetNeighbours(), B_GetNumberOfBuildingsInBaseByBuildingType(), B_GetNumberOfBuildingsInBaseByTemplate(), B_InitCallbacks(), B_InitialEquipment(), B_InitStartup(), B_IsBuildingDestroyable(), B_ListBuildings_f(), B_LoadBaseSlotsXML(), B_LoadStorageXML(), B_LoadXML(), B_MakeBaseMapShot_f(), B_ParseBaseTemplate(), B_ParseBuildings(), B_ResetAllStatusAndCapacities(), B_SaveBaseSlotsXML(), B_SaveStorageXML(), B_SaveXML(), B_SelectBase(), B_SelectBase_f(), B_SellOrAddItems(), B_SetBaseTitle_f(), B_SetBuildingStatus(), B_SetCurrentSelectedBase(), B_SetUpFirstBase(), B_ShutdownCallbacks(), B_UpdateBaseCapacities(), BATTLE_SetVars(), BATTLE_Start(), BDEF_AddBattery(), BDEF_AddBattery_f(), BDEF_AddItem_f(), BDEF_AddSlotToSlotList(), BDEF_AutoTarget(), BDEF_BaseDefenceMenuUpdate_f(), BDEF_ChangeAutoFire(), BDEF_InitCallbacks(), BDEF_RemoveBattery(), BDEF_RemoveBattery_f(), BDEF_RemoveItem_f(), BDEF_SelectItem_f(), BDEF_SetAutoFire(), BDEF_ShutdownCallbacks(), BDEF_UpdateActiveBattery_f(), BDEF_UpdateAircraftItemList(), BS_AddAircraftToMarket(), BS_Buy_f(), BS_BuyAircraft(), BS_BuyItem(), BS_BuyUGV(), BS_FillMarket_f(), BS_GetAircraftBuyingPrice(), BS_GetAircraftOnMarket(), BS_GetAircraftSellingPrice(), BS_InitCallbacks(), BS_InitMarket(), BS_LoadXML(), BS_MarketAircraftDescription(), BS_MarketInfoClick_f(), BS_RemoveAircraftFromMarket(), BS_SaveXML(), BS_SellItem(), BS_SellUGV(), BS_SetAutosell_f(), BS_ShowInfo_f(), BS_ShutdownCallbacks(), CAP_CheckOverflow(), CAP_UpdateStorageCap(), CHAR_GetMaxExperiencePerMission(), CHAR_InitStartup(), CHAR_ParseData(), CHAR_Shutdown(), CHAR_UpdateData(), CHAR_UpdateStats(), CITY_Parse(), CL_DisplayHomebasePopup(), CL_DisplayPopupInterceptMission(), CL_DisplayPopupInterceptUFO(), CL_DoSwapSkills(), CL_EventAddMail(), CL_EventAddMail_f(), CL_ParseCampaignEvents(), CL_ParseEventMails(), CL_ParseNations(), CL_ParseRanks(), CL_PopupChangeHomebase_f(), CL_PopupInit(), CL_PopupInterceptBaseClick_f(), CL_PopupInterceptGetAircraft(), CL_PopupInterceptRClick_f(), CL_SwapSkills(), Com_GetMapDefByIDX(), Com_GetMapDefNumber(), COMP_GetComponentsByID(), COMP_ParseComponents(), CP_AddCampaignCommands(), CP_AddItemAsCollected_f(), CP_AddTechAsResearchable_f(), CP_AddWeaponAmmo(), CP_AttackUFOCarrier_f(), CP_BaseAttackGoToBase(), CP_BaseAttackMissionDestroyBase(), CP_BaseAttackMissionIsFailure(), CP_BaseAttackMissionNextStage(), CP_BaseAttackPrepareBattle(), CP_BaseAttackStartMission(), CP_BeginRescueMission(), CP_BuildBaseMissionNextStage(), CP_BuildBaseSetUpBase(), CP_CampaignInit(), CP_CampaignRunMarket(), CP_CampaignTriggerFunctions(), CP_ChangeNationHappiness_f(), CP_CheckLostCondition(), CP_CheckTriggerEvent(), CP_ChooseCity(), CP_ChooseMap(), CP_ChooseNation(), CP_CleanTempInventory(), CP_CleanupAircraftTeam(), CP_CleanupContainerWeapons(), CP_CleanupTeam(), CP_CreateBattleParameters(), CP_EndCampaign(), CP_EndGame_f(), CP_ExecuteMissionTrigger(), CP_FreeDynamicEventMail(), CP_GetAlienMissionTypeByID(), CP_GetCampaign(), CP_GetMissionByID(), CP_GetRandomPosOnGeoscape(), CP_GetRandomPosOnGeoscapeWithParameters(), CP_HarvestMissionGo(), CP_HarvestMissionNextStage(), CP_InitializeRadarOverlay(), CP_InitializeXVIOverlay(), CP_InitStartup(), CP_InterceptGoToInstallation(), CP_InterceptNextStage(), CP_ItemsSanityCheck(), CP_LoadMapDefStatXML(), CP_LoadXML(), CP_MapIsSelectable(), CP_MissionAddToGeoscape(), CP_MissionBegin(), CP_MissionChooseUFO(), CP_MissionEnd(), CP_MissionIsOver(), CP_MissionRemove(), CP_MissionStageEnd(), CP_OnGeoscape(), CP_ParseAlienTeam(), CP_ParseCampaign(), CP_ParseCampaignData(), CP_ParseEventTrigger(), CP_ParseResearchableCampaignStates(), CP_ParseResearchedCampaignItems(), CP_ParseSalary(), CP_Popup(), CP_RadarGet(), CP_ReadCampaignData(), CP_ReconMissionGroundGo(), CP_ReconMissionNextStage(), CP_RemoveCampaignCommands(), CP_RescueNextStage(), CP_ResetCampaignData(), CP_SaveMapDefStatXML(), CP_SaveXML(), CP_ScriptSanityCheck(), CP_SetAlienEquipmentByInterest(), CP_SetAlienTeamByInterest(), CP_SetEquipContainer(), CP_SetGameTime_f(), CP_SetMissionName(), CP_Shutdown(), CP_SpawnAlienBaseMission(), CP_SpawnCrashSiteMission(), CP_SpawnNewMissions(), CP_SpawnRescueMission(), CP_SpawnUFOCarrier_f(), CP_StartSelectedMission(), CP_SupplyGoToBase(), CP_SupplyMissionCreate(), CP_SupplyMissionNextStage(), CP_SupplySetStayAtBase(), CP_TEAM_AssignSoldierByUCN_f(), CP_TEAM_ChangeSkin_f(), CP_TEAM_DeEquipActor_f(), CP_TEAM_FillBDEFEmployeeList_f(), CP_TEAM_FillEmployeeList_f(), CP_TEAM_FillEquipSoldierList_f(), CP_TEAM_InitCallbacks(), CP_TEAM_SelectActorByUCN_f(), CP_TEAM_ShutdownCallbacks(), CP_TerrorMissionGo(), CP_TerrorMissionNextStage(), CP_ToDifficultyName(), CP_TriggerEvent(), CP_TriggerEventLoadXML(), CP_TriggerEventSaveXML(), CP_UFOCarrierMissionUpdate(), CP_UpdateActorAircraftVar(), CP_UpdateCredits(), CP_UpdateNationXVIInfection(), CP_UpdateTime(), CP_UpdateXVIMapButton(), CP_UploadRadarCoverage(), CP_UploadXVI(), CP_XVIGetAlpha(), CP_XVIInit(), CP_XVIMissionNextStage(), E_ChangeName_f(), E_CountByType(), E_CreateEmployee(), E_DeleteEmployee(), E_EmployeeDelete_f(), E_EmployeeHire_f(), E_EmployeeList_f(), E_EmployeeSelect(), E_EmployeeSelect_f(), E_GetCounts_f(), E_GetEmployeeByMenuIndex(), E_GetEmployeeString(), E_GetEmployeeTypeString(), E_GetHiredEmployees(), E_GetHiredRobot(), E_HireForBuilding(), E_InitCallbacks(), E_InitialEmployees(), E_InitStartup(), E_LoadXML(), E_SaveXML(), E_Shutdown(), E_ShutdownCallbacks(), E_UpdateGUICount_f(), ItemCargo::empty(), FS_CloseFile(), GAME_CP_CampaignDescription_f(), GAME_CP_CharacterCvars(), GAME_CP_DrawBaseLayout(), GAME_CP_DrawBaseLayoutTooltip(), GAME_CP_Drop(), GAME_CP_GetCampaigns_f(), GAME_CP_GetSelectedChr(), GAME_CP_GetTeamDef(), GAME_CP_InitializeBattlescape(), GAME_CP_InitMissionBriefing(), GAME_CP_InitStartup(), GAME_CP_Results(), GAME_CP_Results_f(), GAME_CP_Shutdown(), GAME_CP_Spawn(), GAME_CP_Start_f(), GAME_CP_TeamIsKnown(), GAME_GetImportData(), GAME_InitMenuOptions(), GAME_MP_AddChatMessage(), GAME_MP_AddServerToList(), GAME_MP_BookmarkAdd_f(), GAME_MP_CallbacksInit(), GAME_MP_CallbacksShutdown(), GAME_MP_CompleteNetworkAddress(), GAME_MP_Connect_f(), GAME_MP_Disconnect_f(), GAME_MP_EndRoundAnnounce(), GAME_MP_InitStartup(), GAME_MP_InitUI_f(), GAME_MP_MapInfo(), GAME_MP_NotifyEvent(), GAME_MP_ParseServerInfoMessage(), GAME_MP_ParseTeamInfoMessage(), GAME_MP_PingServer(), GAME_MP_PingServerCallback(), GAME_MP_PingServers_f(), GAME_MP_PrintServerList_f(), GAME_MP_QueryMasterServerThread(), GAME_MP_Rcon(), GAME_MP_Rcon_f(), GAME_MP_RconCallback(), GAME_MP_Reconnect_f(), GAME_MP_Results(), GAME_MP_RunFrame(), GAME_MP_SelectTeam_Init_f(), GAME_MP_ServerInfo_f(), GAME_MP_ServerInfoCallback(), GAME_MP_ServerListClick_f(), GAME_MP_ServerListDiscoveryCallback(), GAME_MP_ServerListInit(), GAME_MP_ServerListShutdown(), GAME_MP_SetTeamNum(), GAME_MP_Shutdown(), GAME_MP_StartBattlescape(), GAME_MP_StartGame_f(), GAME_MP_StartServer_f(), GAME_MP_TeamNum_f(), GAME_MP_UpdateGametype_f(), GAME_SK_ChangeEquip_f(), GAME_SK_GetRandomMapAssemblyNameForCraft(), GAME_SK_HideDropships(), GAME_SK_HideUFOs(), GAME_SK_InitMissionBriefing(), GAME_SK_InitStartup(), GAME_SK_MapInfo(), GAME_SK_Restart_f(), GAME_SK_Results(), GAME_SK_SetMissionParameters(), GAME_SK_Shutdown(), GAME_SK_Start_f(), GEO_3DMapDrawLine(), GEO_CenterOnPoint_f(), GEO_Click(), GEO_Draw(), GEO_Draw3DMarkerIfVisible(), GEO_DrawAircraftHealthBar(), GEO_DrawBeam(), GEO_DrawBullets(), GEO_DrawMapOneBase(), GEO_DrawMapOneInstallation(), GEO_DrawMapOneMission(), GEO_DrawMapOnePhalanxAircraft(), GEO_DrawMarkers(), GEO_DrawRadarInMap(), GEO_GetCivilianNumberByPosition(), GEO_GetColor(), GEO_GetNation(), GEO_GetTerrainTypeByPos(), GEO_Init(), GEO_InitStartup(), GEO_IsNationOverlayActivated(), GEO_IsRadarOverlayActivated(), GEO_IsXVIOverlayActivated(), GEO_MapDrawEquidistantPoints(), GEO_MapDrawLine(), GEO_PositionFitsTCPNTypes(), GEO_PrintParameterStringByPos(), GEO_RenderImage(), GEO_SelectObject_f(), GEO_SetOverlay(), GEO_SetOverlay_f(), GEO_Shutdown(), GEO_UpdateGeoscapeDock(), GetCGameAPI(), HOS_Entry(), HOS_EntryWoundData(), HOS_ImplantDetails_f(), HOS_Init_f(), HOS_InitCallbacks(), HOS_InitStartup(), HOS_ShutdownCallbacks(), INS_BuildInstallation_f(), INS_ChangeInstallationName_f(), INS_DestroyInstallation(), INS_DestroyInstallation_f(), INS_FillTypes_f(), INS_FillUFOYardData_f(), INS_FinishInstallation(), INS_GetCount(), INS_GetType(), INS_InitCallbacks(), INS_InitStartup(), INS_LoadXML(), INS_ParseInstallations(), INS_SaveXML(), INS_SelectInstallation(), INS_SelectInstallation_f(), INS_SelectType_f(), INS_SetCurrentSelectedInstallation(), INS_SetInstallationTitle(), INS_Shutdown(), INS_ShutdownCallbacks(), INS_UpdateInstallationLimit_f(), INT_ChangeIndividualInterest(), INT_InitStartup(), INT_LoadXML(), INT_SaveXML(), INT_Shutdown(), ItemCargo::ItemCargo(), AlienCargo::list(), ItemCargo::list(), LIST_Add(), LIST_CopyStructure(), LIST_Sort(), AlienCargo::load(), ItemCargo::load(), MIS_GeoSelectMission_f(), MIS_GetModel(), MIS_InitCallbacks(), MIS_InitResultScreen(), MIS_InitStartup(), MIS_IsSpawnedFromGround(), MIS_LoadXML(), MIS_SaveXML(), MIS_Shutdown(), MIS_ShutdownCallbacks(), MS_AddNewMessage(), MS_LoadXML(), MS_MessageSaveXML(), MS_SaveXML(), MSO_Init(), MSO_Init_f(), MSO_InitCallbacks(), MSO_InitList(), MSO_LoadXML(), MSO_ParseCategory(), MSO_ParseMessageSettings(), MSO_ParseOption(), MSO_ParseOptionType(), MSO_SaveXML(), MSO_Scroll_f(), MSO_Set(), MSO_Set_f(), MSO_SetAll_f(), MSO_Shutdown(), MSO_ShutdownCallbacks(), MSO_Toggle_f(), MSO_UpdateVisibleButtons(), NAT_DrawCharts_f(), NAT_GetNationByID(), NAT_InitStartup(), NAT_ListStats_f(), NAT_LoadXML(), NAT_SaveXML(), NAT_ScriptSanityCheck(), NAT_Shutdown(), NAT_UpdateHappinessForAllNations(), PR_AircraftInfo(), PR_DecreaseProduction(), PR_DisassemblyInfo(), PR_GetName(), PR_InitCallbacks(), PR_ItemProductionInfo(), PR_LoadXML(), PR_ProductionChange_f(), PR_ProductionDecrease_f(), PR_ProductionDown_f(), PR_ProductionIncrease_f(), PR_ProductionInfo(), PR_ProductionList_f(), PR_ProductionListClick_f(), PR_ProductionListRightClick_f(), PR_ProductionStop_f(), PR_ProductionType_f(), PR_ProductionUp_f(), PR_QueueDelete(), PR_RequirementsInfo(), PR_SaveXML(), PR_ShowActiveProduction_f(), PR_ShutdownCallbacks(), PR_UpdateProductionList(), PR_UpdateRequiredItemsInBasestorage(), RADAR_AddUFO(), RADAR_UpdateBaseRadarCoverage_f(), RADAR_UpdateInstallationRadarCoverage(), RS_AssignScientist(), RS_AssignTechLinks(), RS_Change_f(), RS_FillTechnologyList_f(), RS_GetDetails_f(), RS_GetTechByID(), RS_GetTechByProvided(), RS_GetTechForItem(), RS_GetTechForTeam(), RS_GetTechIdxByName(), RS_InitCallbacks(), RS_InitStartup(), RS_InitTree(), RS_LoadXML(), RS_MarkOneResearchable(), RS_MarkResearchable(), RS_MarkResearched(), RS_Max_f(), RS_ParseTechnologies(), RS_RemoveFiredScientist(), RS_RemoveScientist(), RS_RequiredLinksAssign(), RS_RequirementsMet(), RS_ResearchFinish(), RS_ResetTechs(), RS_SaveXML(), RS_ScriptSanityCheck(), RS_ShowActiveResearch_f(), RS_ShutdownCallbacks(), RS_Stop_f(), SAV_AddSubsystem(), SAV_GameContinue_f(), SAV_GameDelete_f(), SAV_GameLoad(), SAV_GameLoad_f(), SAV_GameQuickLoad_f(), SAV_GameQuickLoadInit_f(), SAV_GameQuickSave_f(), SAV_GameSave(), SAV_GameSave_f(), SAV_GameSaveAllowed(), SAV_GameSaveAllowed_f(), SAV_Init(), SAV_InitCallbacks(), SAV_ListSaveGames_f(), SAV_LoadHeader(), SAV_ShutdownCallbacks(), SAV_VerifyHeader(), AlienCargo::save(), ItemCargo::save(), STAT_GetExpenses_f(), STATS_InitStartup(), STATS_LoadXML(), STATS_SaveXML(), STATS_ShutDown(), STATS_Update_f(), TR_Add_f(), TR_AircraftListSelect(), TR_CargoList(), TR_ClearTempCargo(), TR_CountEmployeeInListArray(), TR_DestinationCapacityList_f(), TR_EmptyTransferCargo(), TR_Fill(), TR_Fill_f(), TR_FillAircraft(), TR_FillAliens(), TR_FillEmployees(), TR_FillItems(), TR_Init_f(), TR_InitBaseList(), TR_InitCallbacks(), TR_InitStartup(), TR_List_f(), TR_LoadXML(), TR_NotifyAircraftRemoved(), TR_SaveXML(), TR_SelectBase_f(), TR_Shutdown(), TR_ShutdownCallbacks(), TR_TransferBaseSelect(), TR_TransferEnd(), TR_TransferListClear_f(), TR_TransferStart(), TR_TransferStart_f(), UFO_CanDoMission(), UFO_DetectNewUFO(), UFO_GeoSelectUFO_f(), UFO_GetAvailableUFOsForMission(), UFO_GetByType(), UFO_GetNextOnGeoscape(), UFO_GetTechnologyFromType(), UFO_InitCallbacks(), UFO_InitStartup(), UFO_IsUFOSeenOnGeoscape(), UFO_RemoveFromGeoscape(), UFO_Shutdown(), UFO_ShutdownCallbacks(), UFO_TypeToName(), Employee::unequip(), Employee::unhire(), UP_AircraftDescription(), UP_AircraftItemDescription(), UP_Article(), UP_BuildingDescription(), UP_ChangeDisplay(), UP_Click_f(), UP_DisplayTechTree(), UP_DrawAssociatedAmmo(), UP_FindEntry_f(), UP_GenerateArticlesSummary(), UP_GenerateSummary(), UP_GetUnreadMails(), UP_InitStartup(), UP_MailClientClick_f(), UP_OpenCopyWith(), UP_OpenEventMail(), UP_OpenMail_f(), UP_OpenMailWith(), UP_OpenWith(), UP_ParseChapter(), UP_SetAllMailsRead_f(), UP_SetMailHeader(), UP_Shutdown(), UP_TechTreeClick_f(), UP_UGVDescription(), UR_DialogInitSell_f(), UR_DialogInitStore_f(), UR_DialogStartSell_f(), UR_DialogStartStore_f(), UR_InitCallbacks(), UR_InitStartup(), UR_Shutdown(), UR_ShutdownCallbacks(), US_DestroyStoredUFO_f(), US_FillUFOTransfer_f(), US_FillUFOTransferUFOs_f(), US_LoadXML(), US_RemoveStoredUFO(), US_RemoveUFOsExceedingCapacity(), US_SaveXML(), US_SelectStoredUfo_f(), US_StoredUFOCount(), US_StoreUFO(), US_TransferUFO(), US_TransferUFO_f(), XVI_LoadXML(), XVI_SaveXML(), AlienCargo::~AlienCargo(), and ItemCargo::~ItemCargo().

◆ cp_campaignPool

◆ cp_missiontest

cvar_t* cp_missiontest
extern

◆ DETECTION_INTERVAL