Campaign mission headers. More...
Go to the source code of this file.
Functions | |
void | CP_ReconMissionNextStage (mission_t *mission) |
Determine what action should be performed when a Recon mission stage ends. | |
int | CP_ReconMissionAvailableUFOs (const mission_t const *mission, ufoType_t *ufoTypes) |
Fill an array with available UFOs for recon mission type (aerial or ground). | |
void | CP_ReconMissionLeave (mission_t *mission) |
Recon mission ends: UFO leave earth. | |
void | CP_ReconMissionGroundGo (mission_t *mission) |
Set ground mission, and go to ground mission pos. | |
void | CP_ReconMissionIsFailure (mission_t *mission) |
Recon mission is over and is a failure: change interest values. | |
void | CP_ReconMissionAerial (mission_t *mission) |
Set aerial mission. |
Campaign mission headers.
Definition in file cp_mission_recon.h.
void CP_ReconMissionAerial | ( | mission_t * | mission | ) |
Set aerial mission.
Definition at line 105 of file cp_mission_recon.c.
References ccs, ccs_s::date, Date_Add(), Date_Random(), mission_s::finalDate, mission_s::stage, STAGE_RECON_AIR, and mission_s::ufo.
Referenced by CP_ReconMissionSelect().
Fill an array with available UFOs for recon mission type (aerial or ground).
[in] | mission | Pointer to the mission we are currently creating. |
[out] | ufoTypes | Array of ufoType_t that may be used for this mission. |
ufoTypes
Definition at line 234 of file cp_mission_recon.c.
References UFO_FIGHTER, and UFO_SCOUT.
Referenced by CP_MissionChooseUFO().
void CP_ReconMissionGroundGo | ( | mission_t * | mission | ) |
Set ground mission, and go to ground mission pos.
Definition at line 123 of file cp_mission_recon.c.
References _, ccs, Com_Printf(), Com_sprintf(), CP_ChooseMap(), CP_GetRandomPosOnGeoscapeWithParameters(), CP_MissionDisableTimeLimit(), CP_MissionRemove(), CP_MissionRemoveFromGeoscape(), mapDef_s::cultures, ccs_s::date, mission_s::finalDate, aircraft_s::landed, mission_s::location, MAP_GetNation(), MAP_PositionCloseToBase(), mission_s::mapDef, MAX_POS_LOOP, nation_s::name, mapDef_s::populations, mission_s::pos, mission_s::posAssigned, qfalse, qtrue, mission_s::stage, STAGE_MISSION_GOTO, mapDef_s::terrains, mission_s::ufo, and UFO_SendToDestination().
Referenced by CP_BuildBaseChooseMission(), and CP_ReconMissionSelect().
void CP_ReconMissionIsFailure | ( | mission_t * | mission | ) |
Recon mission is over and is a failure: change interest values.
Definition at line 56 of file cp_mission_recon.c.
References CL_ChangeIndividualInterest(), CP_MissionRemove(), f, INTERESTCATEGORY_INTERCEPT, INTERESTCATEGORY_RECON, and INTERESTCATEGORY_TERROR_ATTACK.
Referenced by CP_MissionIsOver().
void CP_ReconMissionLeave | ( | mission_t * | mission | ) |
Recon mission ends: UFO leave earth.
Definition at line 69 of file cp_mission_recon.c.
References ccs, CP_MissionDisableTimeLimit(), CP_MissionRemoveFromGeoscape(), ccs_s::date, mission_s::finalDate, aircraft_s::landed, qfalse, mission_s::stage, STAGE_RETURN_TO_ORBIT, mission_s::ufo, and UFO_SetRandomDest().
Referenced by CP_HarvestMissionNextStage(), CP_ReconMissionNextStage(), CP_ReconMissionSelect(), CP_TerrorMissionNextStage(), and CP_XVIMissionNextStage().
void CP_ReconMissionNextStage | ( | mission_t * | mission | ) |
Determine what action should be performed when a Recon mission stage ends.
[in] | mission | Pointer to the mission which stage ended. |
Definition at line 248 of file cp_mission_recon.c.
References Com_Printf(), CP_MissionBegin(), CP_MissionRemove(), CP_ReconMissionGround(), CP_ReconMissionIsSuccess(), CP_ReconMissionLeave(), CP_ReconMissionSelect(), mission_s::stage, STAGE_COME_FROM_ORBIT, STAGE_MISSION_GOTO, STAGE_NOT_ACTIVE, STAGE_RECON_AIR, STAGE_RECON_GROUND, and STAGE_RETURN_TO_ORBIT.
Referenced by CP_MissionStageEnd().