cp_mission_supply.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

int CP_SupplyMissionAvailableUFOs (const mission_t const *mission, ufoType_t *ufoTypes)
 Fill an array with available UFOs for supply mission type.
void CP_SupplyMissionNextStage (mission_t *mission)
 Determine what action should be performed when a Supply mission stage ends.
void CP_SupplyMissionIsFailure (mission_t *mission)
 Supply mission is over and is a failure (from an alien point of view): change interest values.
void CP_SupplyMissionIsSuccess (mission_t *mission)
 Supply mission is over and is a success (from an alien point of view): change interest values.

Detailed Description

Campaign mission headers.

Definition in file cp_mission_supply.h.


Function Documentation

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

Fill an array with available UFOs for supply 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:
Supply mission -- Stage 0
Returns:
number of elements written in ufoTypes

Definition at line 180 of file cp_mission_supply.c.

References UFO_SUPPLY.

Referenced by CP_MissionChooseUFO().

void CP_SupplyMissionIsFailure ( mission_t mission  ) 

Supply mission is over and is a failure (from an alien point of view): change interest values.

Note:
Supply mission

Definition at line 56 of file cp_mission_supply.c.

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

Referenced by CP_MissionIsOver().

void CP_SupplyMissionIsSuccess ( mission_t mission  ) 

Supply mission is over and is a success (from an alien point of view): change interest values.

Note:
Supply mission

Definition at line 39 of file cp_mission_supply.c.

References CL_ChangeIndividualInterest(), CP_MissionRemove(), CP_SpreadXVIAtPos(), mission_s::data, f, INTERESTCATEGORY_SUPPLY, and alienBase_s::pos.

Referenced by CP_MissionIsOver(), and CP_SupplyMissionNextStage().

void CP_SupplyMissionNextStage ( mission_t mission  ) 

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

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

Definition at line 193 of file cp_mission_supply.c.

References Com_Printf(), CP_MissionRemove(), CP_SupplyGoToBase(), CP_SupplyMissionCreate(), CP_SupplyMissionIsSuccess(), CP_SupplyMissionLeave(), CP_SupplySetStayAtBase(), mission_s::stage, STAGE_COME_FROM_ORBIT, STAGE_MISSION_GOTO, STAGE_NOT_ACTIVE, STAGE_RETURN_TO_ORBIT, and STAGE_SUPPLY.

Referenced by CP_MissionStageEnd().


Generated by  doxygen 1.6.2