31 #define MAX_CAMPAIGNS 16 33 #include "../../DateTime.h" 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 92 typedef enum mapType_s {
106 typedef struct alienTeamGroup_s {
125 typedef struct alienTeamCategory_s {
139 typedef struct battleParam_s {
154 typedef struct salary_s {
164 typedef struct campaign_s {
216 typedef enum mapAction_s {
229 typedef struct ccs_s {
401 #define MAX_CREDITS 10000000 403 #include "../cgame.h"
Class describing a point of time.
#define MAX_UFOONGEOSCAPE
alien team group definition.
Header file for Aircraft and item components.
void CP_UpdateCredits(int credits)
Sets credits and update mn_credits cvar.
alienTeamGroup_t * alienTeamGroup
int maxAllowedXVIRateUntilLost
#define MAX_PEDIACHAPTERS
bool CP_IsRunning(void)
Checks whether a campaign mode game is running.
A base with all it's data.
linkedList_t * alienBases
int lastInterestIncreaseDelay
void CP_EndCampaign(bool won)
Function to handle the campaign end.
template for creating a base
const equipDef_t * marketDef
struct mission_s * selectedMission
#define MAX_MESSAGECATEGORIES
Header for single player market stuff.
Header for installation management related stuff.
void(* missionResultFunction_t)(const struct missionResults_s *results)
linkedList_t * initialCraft
Defines some savefile structures.
Header file for Transfer stuff.
void CP_InitStartup(void)
Header for research related stuff.
Header file for messageoptions related stuff.
Header for geoscape event related stuff.
void CP_ReadCampaignData(const campaign_t *campaign)
linkedList_t * storedUFOs
projectile used during fight between two or more aircraft
Header file for UFOpaedia script interpreter.
missionSpawnFunction_t missionSpawnCallback
Header for employee related stuff.
The definition of a "components" entry (i.e. an assembly of several items) parsed from a ufo-file...
aircraft_t * selectedAircraft
int numMsgCategoryEntries
const int DETECTION_INTERVAL
delay between actions that must be executed independently of time scale
aircraft_t * missionAircraft
int CP_GetSalaryUpKeepBase(const salary_t *salary, const base_t *base)
int numCampaignTriggerEvents
const cgame_import_t * cgi
void CP_ParseCampaignData(void)
Read the data for campaigns.
#define MAX_PROJECTILESONGEOSCAPE
Header for production related stuff.
UFO recovery and storing.
campaign_t * CP_GetCampaign(const char *name)
Returns the campaign pointer from global campaign array.
Campaign statistic headers.
void CP_CampaignInit(campaign_t *campaign, bool load)
Called at new game and load game.
void CP_Shutdown(void)
Campaign closing actions.
#define MAX_INSTALLATION_TEMPLATES
missionResultFunction_t missionResultCallback
void CP_CheckLostCondition(const campaign_t *campaign)
Checks whether the player has lost the campaign.
void CP_ResetCampaignData(void)
Will clear most of the parsed singleplayer data.
QGL_EXTERN void(APIENTRY *qglActiveTexture)(GLenum texture)
struct mission_s * mission
An aircraft with all it's data.
Header file for aircraft stuff.
memPool_t * cp_campaignPool
#define MAX_CAMPAIGN_TRIGGER_EVENTS
This is the technology parsed from research.ufo.
QGL_EXTERN GLuint GLsizei GLsizei GLint GLenum GLchar * name
Header file for airfights.
#define MAX_TEAMS_PER_MISSION
linkedList_t * installations
linkedList_t * updateCharacters
client campaign structure
static linkedList_t * eventMails
int numInstallationTemplates
alien team category definition
const campaignEvents_t * events
aircraft_t * interceptAircraft
A building with all it's data.
const equipDef_t * asymptoticMarketDef
bool CP_CheckCredits(int costs)
Checks whether you have enough credits for something.
void(* missionSpawnFunction_t)(void)
bool CP_OnGeoscape(void)
Returns if we are currently on the Geoscape.
battleParam_t battleParameters
int negativeCreditsUntilLost
#define ALIENCATEGORY_MAX
Describes a rank that a recruit can gain.
Header for base management related stuff.
void CP_StartSelectedMission(void)
Starts a selected mission.
#define MAX_BASETEMPLATES
This is a cvar definition. Cvars can be user modified and used in our menus e.g.
int lastMissionSpawnedDelay
available mails for a tech - mail and mail_pre in script files
void CP_CampaignRun(campaign_t *campaign, float secondsSinceLastFrame)
Called every frame when we are in geoscape view.
int numCampaignEventDefinitions
#define MAX_ALIEN_GROUP_PER_CATEGORY