Campaign mission headers. More...
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. |
Campaign mission headers.
Definition in file cp_mission_supply.h.
Fill an array with available UFOs for supply mission type.
[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 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.
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.
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.
[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().