UFO: Alien Invasion
|
Campaign mission header. More...
Go to the source code of this file.
Functions | |
bool | CP_BasemissionIsSubvertingGovernmentMission (const struct mission_s *mission) |
void | CP_BuildBaseMissionNextStage (const campaign_t *campaign, struct mission_s *mission) |
Determine what action should be performed when a Build Base mission stage ends. More... | |
void | CP_BuildBaseMissionIsFailure (struct mission_s *mission) |
Build Base mission is over and is a failure (from an alien point of view): change interest values. More... | |
void | CP_BuildBaseMissionBaseDestroyed (struct mission_s *mission) |
Alien base has been destroyed: change interest values. More... | |
void | CP_BuildBaseMissionIsSuccess (struct mission_s *mission) |
Build Base mission is over and is a success (from an alien point of view): change interest values. More... | |
void | CP_BuildBaseMissionOnSpawn (void) |
Run when the mission is spawned. More... | |
Variables | |
const int | STARTING_BASEBUILD_INTEREST |
Campaign mission header.
Definition in file cp_mission_buildbase.h.
bool CP_BasemissionIsSubvertingGovernmentMission | ( | const struct mission_s * | mission | ) |
Alien base has been destroyed: change interest values.
Definition at line 99 of file cp_mission_buildbase.cpp.
References AB_DestroyBase(), mission_s::missionData_t::alienBase, CP_MissionRemove(), mission_s::data, f, INT_ChangeIndividualInterest(), INTERESTCATEGORY_BUILDING, and INTERESTCATEGORY_INTERCEPT.
Referenced by CP_MissionIsOver().
Build Base mission is over and is a failure (from an alien point of view): change interest values.
Definition at line 78 of file cp_mission_buildbase.cpp.
References CP_MissionRemove(), f, INT_ChangeIndividualInterest(), INTERESTCATEGORY_BASE_ATTACK, and INTERESTCATEGORY_BUILDING.
Referenced by CP_MissionIsOver().
Build Base mission is over and is a success (from an alien point of view): change interest values.
Definition at line 54 of file cp_mission_buildbase.cpp.
References mission_s::missionData_t::alienBase, CP_BasemissionIsSubvertingGovernmentMission(), CP_IsXVIStarted, CP_MissionRemove(), CP_SpreadXVIAtPos(), mission_s::data, f, INT_ChangeIndividualInterest(), INTERESTCATEGORY_HARVEST, INTERESTCATEGORY_SUPPLY, INTERESTCATEGORY_TERROR_ATTACK, INTERESTCATEGORY_XVI, and alienBase_s::pos.
Referenced by CP_BuildBaseMissionNextStage(), and CP_MissionIsOver().
void CP_BuildBaseMissionNextStage | ( | const campaign_t * | campaign, |
mission_t * | mission | ||
) |
Determine what action should be performed when a Build Base mission stage ends.
[in] | campaign | The campaign data structure |
[in] | mission | Pointer to the mission which stage ended. |
Definition at line 242 of file cp_mission_buildbase.cpp.
References cgi, CP_BasemissionIsSubvertingGovernmentMission(), CP_BuildBaseChooseMission(), CP_BuildBaseGovernmentLeave(), CP_BuildBaseMissionIsSuccess(), CP_BuildBaseMissionLeave(), CP_BuildBaseSetUpBase(), CP_BuildBaseSubvertGovernment(), CP_MissionBegin(), CP_MissionRemove(), mission_s::stage, STAGE_BUILD_BASE, STAGE_COME_FROM_ORBIT, STAGE_MISSION_GOTO, STAGE_NOT_ACTIVE, STAGE_RETURN_TO_ORBIT, and STAGE_SUBVERT_GOV.
Referenced by CP_MissionStageEnd().
Run when the mission is spawned.
Definition at line 90 of file cp_mission_buildbase.cpp.
References f, INT_ChangeIndividualInterest(), and INTERESTCATEGORY_BUILDING.
Referenced by CP_CreateNewMission().
const int STARTING_BASEBUILD_INTEREST |