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

Campaign mission headers. More...

Go to the source code of this file.

Functions

void CP_UFOCarrierNextStage (struct mission_s *mission)
 Determine what action should be performed when a UFOCarriering mission stage ends. More...
 
void CP_SpawnUFOCarrier_f (void)
 Spawns a UFO-Carrier mission. More...
 
void CP_AttackUFOCarrier_f (void)
 Decide whether you hit and destroyed the carrier and spawns a new carrier crash site mission. More...
 

Detailed Description

Campaign mission headers.

Definition in file cp_mission_ufocarrier.h.

Function Documentation

void CP_AttackUFOCarrier_f ( void  )

Decide whether you hit and destroyed the carrier and spawns a new carrier crash site mission.

Todo:
until we have the carrier mission fully implemented, this is the campaign end

Definition at line 116 of file cp_mission_ufocarrier.cpp.

References ccs, cgi, CP_EndCampaign(), CP_GetCarrierMission(), CP_GetRandomPosOnGeoscape(), CP_SpawnCrashSiteMission(), ERR_DROP, mapDef_s::id, INS_HasType(), INSTALLATION_ORBIT, mission_s::mapDef, MAX_UFOONGEOSCAPE, aircraft_s::mission, ccs_s::numUFOs, aircraft_s::pos, TEXT_STANDARD, mission_s::ufo, UFO_CreateFromTemplate(), and UFO_GetTemplate().

void CP_UFOCarrierNextStage ( mission_t mission)

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

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

Definition at line 75 of file cp_mission_ufocarrier.cpp.

References CP_UFOCarrierMissionStart(), CP_UFOCarrierMissionUpdate(), mission_s::stage, and STAGE_NOT_ACTIVE.

Referenced by CP_MissionStageEnd().