UFO: Alien Invasion
|
Campaign mission headers. More...
Go to the source code of this file.
Functions | |
void | CP_TerrorMissionOnSpawn (void) |
Run when the mission is spawned. More... | |
void | CP_TerrorMissionStart (struct mission_s *mission) |
Start Terror attack mission. More... | |
void | CP_TerrorMissionIsFailure (struct mission_s *mission) |
Terror attack mission is over and is a failure: change interest values. More... | |
void | CP_TerrorMissionIsSuccess (struct mission_s *mission) |
Terror attack mission is over and is a success: change interest values. More... | |
void | CP_TerrorMissionNextStage (struct mission_s *mission) |
Determine what action should be performed when a Terror attack mission stage ends. More... | |
Campaign mission headers.
Definition in file cp_mission_terror.h.
Terror attack mission is over and is a failure: change interest values.
Definition at line 52 of file cp_mission_terror.cpp.
References CP_MissionRemove(), f, INT_ChangeIndividualInterest(), INTERESTCATEGORY_BASE_ATTACK, INTERESTCATEGORY_BUILDING, INTERESTCATEGORY_INTERCEPT, and INTERESTCATEGORY_TERROR_ATTACK.
Referenced by CP_MissionIsOver().
Terror attack mission is over and is a success: change interest values.
Definition at line 40 of file cp_mission_terror.cpp.
References CP_MissionRemove(), f, INT_ChangeIndividualInterest(), INTERESTCATEGORY_BASE_ATTACK, and INTERESTCATEGORY_HARVEST.
Referenced by CP_TerrorMissionNextStage().
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 172 of file cp_mission_terror.cpp.
References cgi, 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().
Run when the mission is spawned.
Definition at line 66 of file cp_mission_terror.cpp.
References f, INT_ChangeIndividualInterest(), and INTERESTCATEGORY_TERROR_ATTACK.
Referenced by CP_CreateNewMission().
Start Terror attack mission.
Definition at line 77 of file cp_mission_terror.cpp.
References ccs, CP_MissionAddToGeoscape(), CP_UFORemoveFromGeoscape(), ccs_s::date, Date_Add(), Date_Random(), mission_s::finalDate, mission_s::stage, STAGE_TERROR_MISSION, and mission_s::ufo.
Referenced by CP_TerrorMissionNextStage().