34typedef enum missionStage_s {
61typedef struct missionResults_s {
86typedef struct mission_s {
119#define MIS_Foreach(var) LIST_Foreach(ccs.missions, mission_t, var)
DateTime class definition.
Class describing a point of time.
Header file for single player campaign control.
void MIS_InitStartup(void)
Init actions for missions-subsystem.
void CP_InitializeSpawningDelay(void)
Initialize spawning delay.
void BATTLE_Start(mission_t *mission, const battleParam_t *battleParameters)
Select the mission type and start the map from mission definition.
void CP_MissionNotifyBaseDestroyed(const base_t *base)
Notify that a base has been removed.
int MIS_GetIdx(const mission_t *mis)
Find idx corresponding to mission.
void CP_CreateBattleParameters(mission_t *mission, battleParam_t *param, const aircraft_t *aircraft)
Create parameters needed for battle. This is the data that is used for starting the tactical part of ...
int CP_CountMissionOnGeoscape(void)
Count the number of mission active and displayed on geoscape.
void CP_MissionNotifyInstallationDestroyed(const installation_t *installation)
Notify missions that an installation has been destroyed.
void MIS_Shutdown(void)
Closing actions for missions-subsystem.
bool CP_CheckMissionLimitedInTime(const mission_t *mission)
Check if mission should end because of limited time.
void CP_UFOProceedMission(const struct campaign_s *campaign, struct aircraft_s *ufocraft)
mission_t * CP_GetMissionByID(const char *missionId)
Get a mission in ccs.missions by Id.
void CP_UpdateMissionVisibleOnGeoscape(void)
Update all mission visible on geoscape (in base radar range).
void BATTLE_SetVars(const battleParam_t *battleParameters)
Set some needed cvars from a battle definition.
void CP_MissionEndActions(mission_t *mission, aircraft_t *aircraft, bool won)
Actions to be done after mission finished.
void CP_SpawnRescueMission(aircraft_t *aircraft, aircraft_t *ufo)
Spawn a new rescue mission for a crashed (phalanx) aircraft.
bool CP_MissionBegin(mission_t *mission)
mission begins: UFO arrive on earth.
const char * MIS_GetModel(const mission_t *mission)
Get mission model that should be shown on the geoscape.
void CP_UFORemoveFromGeoscape(mission_t *mission, bool destroyed)
Removes (temporarily or permanently) a UFO from geoscape: make it land and call notify functions.
void CP_MissionRemove(mission_t *mission)
Removes a mission from mission global array.
bool CP_CheckNextStageDestination(const struct campaign_s *campaign, struct aircraft_s *ufo)
void CP_MissionIsOverByUFO(aircraft_t *ufocraft)
Mission is finished because Phalanx team ended it.
mission_t * CP_CreateNewMission(interestCategory_t category, bool beginNow)
Create a new mission of given category.
bool CP_ChooseMap(mission_t *mission, const vec2_t pos)
Choose a map for given mission.
bool CP_CheckNewMissionDetectedOnGeoscape(void)
Check if mission has been detected by radar.
void CP_MissionEnd(const campaign_t *campaign, mission_t *mission, const battleParam_t *battleParameters, bool won)
Closing actions after fighting a battle.
void CP_MissionRemoveFromGeoscape(mission_t *mission)
Removes a mission from geoscape: make it non visible and call notify functions.
void CP_MissionAddToGeoscape(mission_t *mission, bool force)
Add a mission to geoscape: make it visible and stop time.
void CP_MissionIsOver(mission_t *mission)
Mission is finished because Phalanx team won it.
const char * MIS_GetName(const mission_t *mission)
Returns a short translated name for a mission.
void CP_MissionStageEnd(const campaign_t *campaign, mission_t *mission)
Determine what action should be performed when a mission stage ends.
void CP_SpawnCrashSiteMission(aircraft_t *ufo)
Spawn a new crash site after a UFO has been destroyed.
ufoType_t CP_MissionChooseUFO(const mission_t *mission)
Choose UFO type for a given mission category.
mission_t * CP_GetMissionByIDSilent(const char *missionId)
Get a mission in ccs.missions by Id without error messages.
void CP_MissionDisableTimeLimit(mission_t *mission)
Disable time limit for given mission.
mission_t * MIS_GetByIdx(int id)
Find mission corresponding to idx.
void CP_SpawnNewMissions(void)
Spawn new missions.
QGL_EXTERN GLsizei const GLvoid * data
An aircraft with all it's data.
A base with all it's data.
A installation with all it's data.
missionResults_t missionResults
int initialOverallInterest
interestCategory_t category
int initialIndividualInterest
Structure with mission info needed to create results summary at menu won.
int civiliansKilledFriendlyFire
const struct mission_s * mission
int ownKilledFriendlyFire
installation_t * installation