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

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...
 

Detailed Description

Campaign mission headers.

Definition in file cp_mission_terror.h.

Function Documentation

void CP_TerrorMissionIsFailure ( mission_t mission)

Terror attack mission is over and is a failure: change interest values.

Note
Terror attack mission

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().

void CP_TerrorMissionIsSuccess ( mission_t mission)

Terror attack mission is over and is a success: change interest values.

Note
Terror attack mission

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().

void CP_TerrorMissionNextStage ( mission_t mission)

Determine what action should be performed when a Terror attack mission stage ends.

Parameters
[in]missionPointer 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().

void CP_TerrorMissionOnSpawn ( void  )

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().

void CP_TerrorMissionStart ( mission_t mission)

Start Terror attack mission.

Note
Terror attack mission – Stage 2

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().