UFO: Alien Invasion
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
cp_mission_rescue.h File Reference

Campaign mission headers. More...

Go to the source code of this file.

Functions

void CP_EndRescueMission (struct mission_s *mission, aircraft_t *aircraft, bool won)
 Actions to be done when rescue mission finished/expired. More...
 
void CP_RescueNextStage (struct mission_s *mission)
 Determine what action should be performed when a Rescue mission stage ends. More...
 

Detailed Description

Campaign mission headers.

Definition in file cp_mission_rescue.h.

Function Documentation

void CP_EndRescueMission ( mission_t mission,
aircraft_t aircraft,
bool  won 
)

Actions to be done when rescue mission finished/expired.

Parameters
[in,out]missionPointer to the finished mission
[in,out]aircraftPointer to the dropship done the mission
[in]wonBoolean flag if thew mission was successful (from PHALANX's PoV)
Todo:
it should be dumped to the cargo loot of the dropship done the rescue mission not the base directly

Definition at line 65 of file cp_mission_rescue.cpp.

References aircraft_s::acTeam, AIR_DestroyAircraft(), AIR_RemoveEmployee(), mission_s::missionData_t::aircraft, B_DumpAircraftToHomeBase(), ccs, CP_CheckMissionLimitedInTime(), mission_s::data, ccs_s::date, Date_LaterThan(), mission_s::finalDate, LIST_Foreach, and aircraft_s::pilot.

Referenced by CP_LeaveRescueMission(), and CP_MissionEndActions().

void CP_RescueNextStage ( mission_t mission)

Determine what action should be performed when a Rescue mission stage ends.

Parameters
[in,out]missionPointer to the mission which stage ended.

Definition at line 115 of file cp_mission_rescue.cpp.

References cgi, CP_BeginRescueMission(), CP_LeaveRescueMission(), CP_MissionRemove(), mission_s::stage, STAGE_MISSION_GOTO, STAGE_RECON_GROUND, and STAGE_RETURN_TO_ORBIT.

Referenced by CP_MissionStageEnd().