25#include "../../../DateTime.h"
26#include "../../../cl_shared.h"
27#include "../cp_campaign.h"
28#include "../cp_missions.h"
29#include "../cp_time.h"
49 cgi->Com_Error(
ERR_DROP,
"Could not find mapdef rescue");
70 assert(crashedAircraft);
74 if (crashedAircraft->
pilot)
119 switch (mission->
stage) {
130 cgi->Com_Printf(
"CP_RescueNextStage: Unknown stage: %i, removing mission.\n", mission->
stage);
Class describing a point of time.
bool AIR_RemoveEmployee(Employee *employee, aircraft_t *aircraft)
Removes a soldier from an aircraft.
void AIR_DestroyAircraft(aircraft_t *aircraft, bool killPilot)
Removes an aircraft from its base and the game.
void B_DumpAircraftToHomeBase(aircraft_t *aircraft)
Will unload all cargo to the homebase.
const cgame_import_t * cgi
void CP_RescueNextStage(mission_t *mission)
Determine what action should be performed when a Rescue mission stage ends.
static void CP_LeaveRescueMission(mission_t *mission)
Rescue mission expired, UFO leave earth.
void CP_EndRescueMission(mission_t *mission, aircraft_t *aircraft, bool won)
Actions to be done when rescue mission finished/expired.
static void CP_BeginRescueMission(mission_t *mission)
Actions to be done when UFO arrived at rescue mission location.
Campaign mission headers.
bool CP_CheckMissionLimitedInTime(const mission_t *mission)
Check if mission should end because of limited time.
void CP_MissionRemove(mission_t *mission)
Removes a mission from mission global array.
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_MissionDisableTimeLimit(mission_t *mission)
Disable time limit for given mission.
DateTime Date_Random(const DateTime &minFrame, const DateTime &maxFrame)
Return a random relative date which lies between a lower and upper limit.
void UFO_SetRandomDest(aircraft_t *ufocraft)
Give a random destination to the given UFO, and make him to move there.
#define LIST_Foreach(list, type, var)
Iterates over a linked list, it's safe to delete the returned entry from the list while looping over ...
An aircraft with all it's data.
mapDef_t *IMPORT * Com_GetMapDefinitionByID(const char *mapDefID)
union mission_t::missionData_t data