cp_mission_recon.h File Reference

Campaign mission headers. More...

This graph shows which files directly or indirectly include this file:

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.

Detailed Description

Campaign mission headers.

Definition in file cp_mission_recon.h.


Function Documentation

void CP_ReconMissionAerial ( mission_t mission  ) 

Set aerial mission.

Note:
Recon mission -- Stage 1
See also:
CP_ReconMissionSelect

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().

int CP_ReconMissionAvailableUFOs ( const mission_t const *  mission,
ufoType_t ufoTypes 
)

Fill an array with available UFOs for recon mission type (aerial or ground).

Parameters:
[in] mission Pointer to the mission we are currently creating.
[out] ufoTypes Array of ufoType_t that may be used for this mission.
Note:
Recon mission -- Stage 0
Returns:
number of elements written in 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  ) 
void CP_ReconMissionIsFailure ( mission_t mission  ) 

Recon mission is over and is a failure: change interest values.

Note:
Recon mission

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  ) 
void CP_ReconMissionNextStage ( mission_t mission  ) 

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

Parameters:
[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().


Generated by  doxygen 1.6.2