UFO: Alien Invasion
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
cp_mission_supply.h File Reference

Campaign mission headers. More...

Go to the source code of this file.

Functions

void CP_SupplyMissionNextStage (struct mission_s *mission)
 Determine what action should be performed when a Supply mission stage ends. More...
 
void CP_SupplyMissionIsFailure (struct mission_s *mission)
 Supply mission is over and is a failure (from an alien point of view): change interest values. More...
 
void CP_SupplyMissionIsSuccess (struct mission_s *mission)
 Supply mission is over and is a success (from an alien point of view): change interest values. More...
 

Detailed Description

Campaign mission headers.

Definition in file cp_mission_supply.h.

Function Documentation

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 57 of file cp_mission_supply.cpp.

References CP_MissionRemove(), f, INT_ChangeIndividualInterest(), 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 40 of file cp_mission_supply.cpp.

References mission_s::missionData_t::alienBase, CP_MissionRemove(), CP_SpreadXVIAtPos(), mission_s::data, f, INT_ChangeIndividualInterest(), 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]missionPointer to the mission which stage ended.

Definition at line 178 of file cp_mission_supply.cpp.

References cgi, 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().