cp_mission_harvest.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_HarvestMissionNextStage (mission_t *mission)
 Determine what action should be performed when a Harvesting mission stage ends.
int CP_HarvestMissionAvailableUFOs (const mission_t const *mission, ufoType_t *ufoTypes)
 Fill an array with available UFOs for Harvesting mission type.
void CP_HarvestMissionIsFailure (mission_t *mission)
 Harvesting mission is over and is a failure: change interest values.
void CP_HarvestMissionGo (mission_t *mission)
 Set Harvest mission, and go to mission pos.

Detailed Description

Campaign mission headers.

Definition in file cp_mission_harvest.h.


Function Documentation

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

Fill an array with available UFOs for Harvesting mission type.

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:
Harvesting mission -- Stage 0
Returns:
number of elements written in ufoTypes

Definition at line 184 of file cp_mission_harvest.c.

References UFO_HARVESTER.

Referenced by CP_MissionChooseUFO().

void CP_HarvestMissionGo ( mission_t mission  ) 
void CP_HarvestMissionIsFailure ( mission_t mission  ) 

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

Note:
Harvesting mission

Definition at line 54 of file cp_mission_harvest.c.

References CL_ChangeIndividualInterest(), CP_MissionRemove(), f, INTERESTCATEGORY_BASE_ATTACK, INTERESTCATEGORY_INTERCEPT, and INTERESTCATEGORY_TERROR_ATTACK.

Referenced by CP_MissionIsOver().

void CP_HarvestMissionNextStage ( mission_t mission  ) 

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

Parameters:
[in] mission Pointer to the mission which stage ended.

Definition at line 197 of file cp_mission_harvest.c.

References Com_Printf(), CP_HarvestMissionGo(), CP_HarvestMissionIsSuccess(), CP_HarvestMissionStart(), CP_MissionBegin(), CP_MissionRemove(), CP_ReconMissionLeave(), mission_s::stage, STAGE_COME_FROM_ORBIT, STAGE_HARVEST, STAGE_MISSION_GOTO, STAGE_NOT_ACTIVE, and STAGE_RETURN_TO_ORBIT.

Referenced by CP_MissionStageEnd().


Generated by  doxygen 1.6.2