Campaign mission headers. More...
Go to the source code of this file.
Functions | |
void | CP_TerrorMissionOnSpawn (void) |
Run when the mission is spawned. | |
void | CP_TerrorMissionStart (mission_t *mission) |
Start Terror attack mission. | |
void | CP_TerrorMissionIsFailure (mission_t *mission) |
Terror attack mission is over and is a failure: change interest values. | |
void | CP_TerrorMissionIsSuccess (mission_t *mission) |
Terror attack mission is over and is a success: change interest values. | |
void | CP_TerrorMissionNextStage (mission_t *mission) |
Determine what action should be performed when a Terror attack mission stage ends. |
Campaign mission headers.
Definition in file cp_mission_terror.h.
void CP_TerrorMissionIsFailure | ( | mission_t * | mission | ) |
Terror attack mission is over and is a failure: change interest values.
Definition at line 50 of file cp_mission_terror.c.
References CL_ChangeIndividualInterest(), CP_MissionRemove(), f, INTERESTCATEGORY_BASE_ATTACK, INTERESTCATEGORY_BUILDING, INTERESTCATEGORY_INTERCEPT, and INTERESTCATEGORY_TERROR_ATTACK.
Referenced by CP_MissionIsOver().
void CP_TerrorMissionIsSuccess | ( | mission_t * | mission | ) |
Terror attack mission is over and is a success: change interest values.
Definition at line 38 of file cp_mission_terror.c.
References CL_ChangeIndividualInterest(), CP_MissionRemove(), f, INTERESTCATEGORY_BASE_ATTACK, and INTERESTCATEGORY_HARVEST.
Referenced by CP_TerrorMissionNextStage().
void CP_TerrorMissionNextStage | ( | mission_t * | mission | ) |
Determine what action should be performed when a Terror attack mission stage ends.
[in] | mission | Pointer to the mission which stage ended. |
Definition at line 197 of file cp_mission_terror.c.
References Com_Printf(), CP_MissionBegin(), CP_MissionRemove(), CP_ReconMissionLeave(), CP_TerrorMissionGo(), CP_TerrorMissionIsSuccess(), CP_TerrorMissionStart(), mission_s::stage, STAGE_COME_FROM_ORBIT, STAGE_MISSION_GOTO, STAGE_NOT_ACTIVE, STAGE_RETURN_TO_ORBIT, and STAGE_TERROR_MISSION.
Referenced by CP_MissionStageEnd().
void CP_TerrorMissionOnSpawn | ( | void | ) |
Run when the mission is spawned.
Definition at line 64 of file cp_mission_terror.c.
References CL_ChangeIndividualInterest(), f, and INTERESTCATEGORY_TERROR_ATTACK.
Referenced by CP_CreateNewMission().
void CP_TerrorMissionStart | ( | mission_t * | mission | ) |
Start Terror attack mission.
Definition at line 75 of file cp_mission_terror.c.
References ccs, CP_MissionAddToGeoscape(), CP_UFORemoveFromGeoscape(), ccs_s::date, Date_Add(), Date_Random(), mission_s::finalDate, qfalse, mission_s::stage, STAGE_TERROR_MISSION, and mission_s::ufo.
Referenced by CP_TerrorMissionNextStage().