31#define MAX_CAMPAIGNS 16
59#define MAX_ALIEN_GROUP_PER_CATEGORY 8
61#define ALIENCATEGORY_MAX 64
62#define MAX_PROJECTILESONGEOSCAPE 32
67#define HOURS_PER_ONE_INTEREST 24
72#define INITIAL_OVERALL_INTEREST 20
73#define FINAL_OVERALL_INTEREST 400
78#define DELAY_BETWEEN_MISSION_SPAWNING 12
84#define EARLY_UFO_RUSH_INTEREST 50
89#define NON_OCCURRENCE_PROBABILITY 0.75
92typedef enum mapType_s {
106typedef struct alienTeamGroup_s {
125typedef struct alienTeamCategory_s {
139typedef struct battleParam_s {
154typedef struct salary_s {
164typedef struct campaign_s {
216typedef enum mapAction_s {
229typedef struct ccs_s {
401#define MAX_CREDITS 10000000
DateTime class definition.
Client game mode interface.
Class describing a point of time.
Header file for aircraft stuff.
Header file for airfights.
Header for base management related stuff.
#define MAX_BASETEMPLATES
memPool_t * cp_campaignPool
const int DETECTION_INTERVAL
delay between actions that must be executed independently of time scale
const cgame_import_t * cgi
void CP_ResetCampaignData(void)
Will clear most of the parsed singleplayer data.
void CP_Shutdown(void)
Campaign closing actions.
bool CP_OnGeoscape(void)
Returns if we are currently on the Geoscape.
bool CP_IsRunning(void)
Checks whether a campaign mode game is running.
#define MAX_PROJECTILESONGEOSCAPE
void CP_CampaignRun(campaign_t *campaign, float secondsSinceLastFrame)
Called every frame when we are in geoscape view.
#define MAX_ALIEN_GROUP_PER_CATEGORY
#define ALIENCATEGORY_MAX
int CP_GetSalaryUpKeepBase(const salary_t *salary, const base_t *base)
void CP_InitStartup(void)
void CP_CheckLostCondition(const campaign_t *campaign)
Checks whether the player has lost the campaign.
void CP_StartSelectedMission(void)
Starts a selected mission.
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(* missionResultFunction_t)(const struct missionResults_s *results)
void CP_EndCampaign(bool won)
Function to handle the campaign end.
campaign_t * CP_GetCampaign(const char *name)
Returns the campaign pointer from global campaign array.
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.
void CP_ReadCampaignData(const campaign_t *campaign)
void(* missionSpawnFunction_t)(void)
Header file for Aircraft and item components.
Header for employee related stuff.
Header for geoscape event related stuff.
#define MAX_CAMPAIGN_TRIGGER_EVENTS
Header for installation management related stuff.
#define MAX_INSTALLATION_TEMPLATES
Header for single player market stuff.
Header file for messageoptions related stuff.
#define MAX_MESSAGECATEGORIES
Header for production related stuff.
#define MAX_UFOONGEOSCAPE
Header for research related stuff.
Defines some savefile structures.
Campaign statistic headers.
Header file for Transfer stuff.
Header file for UFOpaedia script interpreter.
#define MAX_PEDIACHAPTERS
UFO recovery and storing.
#define MAX_TEAMS_PER_MISSION
QGL_EXTERN void(APIENTRY *qglActiveTexture)(GLenum texture)
QGL_EXTERN GLuint GLsizei GLsizei GLint GLenum GLchar * name
An aircraft with all it's data.
projectile used during fight between two or more aircraft
alien team category definition
interestCategory_t missionCategories[INTERESTCATEGORY_MAX]
alienTeamGroup_t alienTeamGroups[MAX_ALIEN_GROUP_PER_CATEGORY]
alien team group definition.
const chrTemplate_t * alienChrTemplates[MAX_TEAMS_PER_MISSION]
const teamDef_t * alienTeams[MAX_TEAMS_PER_MISSION]
A base with all it's data.
template for creating a base
alienTeamGroup_t * alienTeamGroup
char alienEquipment[MAX_VAR]
struct mission_s * mission
A building with all it's data.
char asymptoticMarket[MAX_VAR]
const equipDef_t * asymptoticMarketDef
const campaignEvents_t * events
char firstBaseTemplate[MAX_VAR]
const equipDef_t * marketDef
int maxAllowedXVIRateUntilLost
char soldierEquipment[MAX_VAR]
int negativeCreditsUntilLost
linkedList_t * initialCraft
client campaign structure
pediaChapter_t upChapters[MAX_PEDIACHAPTERS]
technology_t technologies[MAX_TECHNOLOGIES]
baseTemplate_t baseTemplates[MAX_BASETEMPLATES]
battleParam_t battleParameters
int numMsgCategoryEntries
missionResultFunction_t missionResultCallback
building_t buildings[MAX_BASES][MAX_BUILDINGS]
int lastMissionSpawnedDelay
linkedList_t * employees[MAX_EMPL]
aircraft_t ufos[MAX_UFOONGEOSCAPE]
components_t components[MAX_ASSEMBLIES]
linkedList_t * updateCharacters
aircraft_t aircraftTemplates[MAX_AIRCRAFT]
aircraftProjectile_t projectiles[MAX_PROJECTILESONGEOSCAPE]
linkedList_t * storedUFOs
int numCampaignEventDefinitions
linkedList_t * installations
eventMail_t eventMails[MAX_EVENTMAILS]
msgCategoryEntry_t msgCategoryEntries[NT_NUM_NOTIFYTYPE+MAX_MESSAGECATEGORIES]
int lastInterestIncreaseDelay
int numCampaignTriggerEvents
msgCategory_t messageCategories[MAX_MESSAGECATEGORIES]
struct mission_s * selectedMission
campaign_t campaigns[MAX_CAMPAIGNS]
int numInstallationTemplates
installationTemplate_t installationTemplates[MAX_INSTALLATION_TEMPLATES]
alienTeamCategory_t alienCategories[ALIENCATEGORY_MAX]
aircraft_t * selectedAircraft
campaignTriggerEvent_t campaignTriggerEvents[MAX_CAMPAIGN_TRIGGER_EVENTS]
aircraft_t * interceptAircraft
technology_t * teamDefTechs[MAX_TEAMDEFS]
aircraft_t * missionAircraft
missionSpawnFunction_t missionSpawnCallback
campaignEvents_t campaignEvents[MAX_CAMPAIGNS]
technology_t * objDefTechs[MAX_OBJDEFS]
int numBuildings[MAX_BASES]
linkedList_t * alienBases
int interest[INTERESTCATEGORY_MAX]
building_t buildingTemplates[MAX_BUILDINGS]
The definition of a "components" entry (i.e. an assembly of several items) parsed from a ufo-file.
This is a cvar definition. Cvars can be user modified and used in our menus e.g.
available mails for a tech - mail and mail_pre in script files
Describes a rank that a recruit can gain.
This is the technology parsed from research.ufo.