UFO: Alien Invasion
|
Campaign mission headers. More...
Go to the source code of this file.
Functions | |
void | CP_InterceptMissionLeave (struct mission_s *mission, bool destroyed) |
Intercept mission ends: UFO leave earth. More... | |
void | CP_InterceptNextStage (struct mission_s *mission) |
Determine what action should be performed when a Intercept mission stage ends. More... | |
void | CP_InterceptMissionIsFailure (struct mission_s *mission) |
Intercept mission is over and is a failure: change interest values. More... | |
void | CP_InterceptMissionIsSuccess (struct mission_s *mission) |
Intercept mission is over and is a success: change interest values. More... | |
void | CP_InterceptGoToInstallation (struct mission_s *mission) |
Set Intercept mission: UFO chooses an installation an flies to it. More... | |
void | CP_InterceptAircraftMissionSet (struct mission_s *mission) |
Set Intercept mission: UFO looks for new aircraft target. More... | |
Campaign mission headers.
Definition in file cp_mission_intercept.h.
Set Intercept mission: UFO looks for new aircraft target.
Definition at line 126 of file cp_mission_intercept.cpp.
References ccs, ccs_s::date, Date_Add(), Date_Random(), mission_s::finalDate, mission_s::stage, and STAGE_INTERCEPT.
Referenced by CP_InterceptMissionSet().
Set Intercept mission: UFO chooses an installation an flies to it.
Definition at line 170 of file cp_mission_intercept.cpp.
References cgi, CP_InterceptChooseInstallation(), CP_MissionDisableTimeLimit(), CP_MissionRemove(), mission_s::data, mission_s::missionData_t::installation, installation_s::pos, mission_s::pos, mission_s::posAssigned, mission_s::stage, STAGE_MISSION_GOTO, mission_s::ufo, UFO_SendToDestination(), and Vector2Copy.
Referenced by CP_InterceptMissionSet().
Intercept mission is over and is a failure: change interest values.
Definition at line 53 of file cp_mission_intercept.cpp.
References CP_MissionRemove(), f, INT_ChangeIndividualInterest(), INTERESTCATEGORY_BASE_ATTACK, INTERESTCATEGORY_BUILDING, INTERESTCATEGORY_INTERCEPT, and INTERESTCATEGORY_TERROR_ATTACK.
Referenced by CP_MissionIsOver().
Intercept mission is over and is a success: change interest values.
Definition at line 38 of file cp_mission_intercept.cpp.
References CP_IsXVIStarted, CP_MissionRemove(), f, INT_ChangeIndividualInterest(), INTERESTCATEGORY_HARVEST, INTERESTCATEGORY_INTERCEPT, INTERESTCATEGORY_RECON, and INTERESTCATEGORY_XVI.
Referenced by CP_InterceptNextStage(), and CP_MissionIsOver().
Intercept mission ends: UFO leave earth.
[in] | mission | Pointer to the mission |
[in] | destroyed | true if the UFO actually destroyed the installation, false else |
Definition at line 71 of file cp_mission_intercept.cpp.
References CP_MissionDisableTimeLimit(), CP_MissionRemoveFromGeoscape(), mission_s::data, INS_DestroyInstallation(), mission_s::missionData_t::installation, aircraft_s::landed, installation_s::pos, mission_s::pos, mission_s::stage, STAGE_RETURN_TO_ORBIT, mission_s::ufo, UFO_EPSILON, UFO_SetRandomDest(), Vector2Copy, and VectorCompareEps().
Referenced by CP_InterceptNextStage(), and CP_MissionNotifyInstallationDestroyed().
Determine what action should be performed when a Intercept mission stage ends.
[in] | mission | Pointer to the mission which stage ended. |
Definition at line 217 of file cp_mission_intercept.cpp.
References AIR_UFO, AIRFIGHT_ChooseWeapon(), AIRFIGHT_WEAPON_CAN_NEVER_SHOOT, ccs, cgi, CP_InterceptAttackInstallation(), CP_InterceptMissionIsSuccess(), CP_InterceptMissionLeave(), CP_InterceptMissionSet(), CP_MissionBegin(), CP_MissionRemove(), mission_s::data, ccs_s::date, Date_Add(), mission_s::finalDate, mission_s::missionData_t::installation, aircraft_s::maxWeapons, aircraft_s::pos, mission_s::stage, STAGE_COME_FROM_ORBIT, STAGE_INTERCEPT, STAGE_MISSION_GOTO, STAGE_NOT_ACTIVE, STAGE_RETURN_TO_ORBIT, aircraft_s::status, mission_s::ufo, and aircraft_s::weapons.
Referenced by CP_MissionStageEnd(), and TEST_F().