Campaign mission header. More...
Go to the source code of this file.
Functions | |
qboolean | CP_BasemissionIsSubvertingGovernmentMission (const mission_t *mission) |
int | CP_BuildBaseMissionAvailableUFOs (const mission_t const *mission, ufoType_t *ufoTypes) |
Fill an array with available UFOs for build base mission type. | |
void | CP_BuildBaseMissionNextStage (mission_t *mission) |
Determine what action should be performed when a Build Base mission stage ends. | |
void | CP_BuildBaseMissionIsFailure (mission_t *mission) |
Build Base mission is over and is a failure (from an alien point of view): change interest values. | |
void | CP_BuildBaseMissionBaseDestroyed (mission_t *mission) |
Alien base has been destroyed: change interest values. | |
void | CP_BuildBaseMissionIsSuccess (mission_t *mission) |
Build Base mission is over and is a success (from an alien point of view): change interest values. | |
void | CP_BuildBaseMissionOnSpawn (void) |
Run when the mission is spawned. | |
Variables | |
const int | STARTING_BASEBUILD_INTEREST |
Campaign mission header.
Definition in file cp_mission_buildbase.h.
This mission type has no alienbase set
mission | The mission to check |
Definition at line 44 of file cp_mission_buildbase.c.
References mission_s::initialOverallInterest, and STARTING_BASEBUILD_INTEREST.
Referenced by CP_BuildBaseChooseMission(), CP_BuildBaseMissionAvailableUFOs(), CP_BuildBaseMissionIsSuccess(), CP_BuildBaseMissionNextStage(), and CP_LoadMissionsXML().
Fill an array with available UFOs for build base 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 240 of file cp_mission_buildbase.c.
References CP_BasemissionIsSubvertingGovernmentMission(), UFO_SCOUT, and UFO_SUPPLY.
Referenced by CP_MissionChooseUFO().
void CP_BuildBaseMissionBaseDestroyed | ( | mission_t * | mission | ) |
Alien base has been destroyed: change interest values.
Definition at line 97 of file cp_mission_buildbase.c.
References AB_DestroyBase(), CL_ChangeIndividualInterest(), CP_MissionRemove(), mission_s::data, f, INTERESTCATEGORY_BUILDING, and INTERESTCATEGORY_INTERCEPT.
Referenced by CP_MissionIsOver().
void CP_BuildBaseMissionIsFailure | ( | mission_t * | mission | ) |
Build Base mission is over and is a failure (from an alien point of view): change interest values.
Definition at line 76 of file cp_mission_buildbase.c.
References CL_ChangeIndividualInterest(), CP_MissionRemove(), f, INTERESTCATEGORY_BASE_ATTACK, and INTERESTCATEGORY_BUILDING.
Referenced by CP_MissionIsOver().
void CP_BuildBaseMissionIsSuccess | ( | mission_t * | mission | ) |
Build Base mission is over and is a success (from an alien point of view): change interest values.
Definition at line 53 of file cp_mission_buildbase.c.
References CL_ChangeIndividualInterest(), CP_BasemissionIsSubvertingGovernmentMission(), CP_MissionRemove(), CP_SpreadXVIAtPos(), mission_s::data, f, INTERESTCATEGORY_HARVEST, INTERESTCATEGORY_SUPPLY, INTERESTCATEGORY_TERROR_ATTACK, INTERESTCATEGORY_XVI, and alienBase_s::pos.
Referenced by CP_BuildBaseMissionNextStage(), and CP_MissionIsOver().
void CP_BuildBaseMissionNextStage | ( | mission_t * | mission | ) |
Determine what action should be performed when a Build Base mission stage ends.
[in] | mission | Pointer to the mission which stage ended. |
Definition at line 259 of file cp_mission_buildbase.c.
References Com_Printf(), 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().
void CP_BuildBaseMissionOnSpawn | ( | void | ) |
Run when the mission is spawned.
Definition at line 88 of file cp_mission_buildbase.c.
References CL_ChangeIndividualInterest(), f, and INTERESTCATEGORY_BUILDING.
Referenced by CP_CreateNewMission().
const int STARTING_BASEBUILD_INTEREST |
Overall alien interest value for starting constructing alien bases.
Definition at line 37 of file cp_mission_buildbase.c.
Referenced by CP_BasemissionIsSubvertingGovernmentMission().