|
UFO: Alien Invasion
|
Campaign mission. More...
#include "../../../DateTime.h"#include "../../../cl_shared.h"#include "../cp_campaign.h"#include "../cp_alienbase.h"#include "../cp_geoscape.h"#include "../cp_ufo.h"#include "../cp_missions.h"#include "../cp_time.h"#include "../cp_xvi.h"#include "../cp_alien_interest.h"#include "cp_mission_recon.h"
Go to the source code of this file.
Functions | |
| static void | CP_ReconMissionIsSuccess (mission_t *mission) |
| Recon mission is over and is a success: change interest values. | |
| void | CP_ReconMissionIsFailure (mission_t *mission) |
| Recon mission is over and is a failure: change interest values. | |
| void | CP_ReconMissionLeave (mission_t *mission) |
| Recon mission ends: UFO leave earth. | |
| static bool | CP_ReconMissionChoose (mission_t *mission) |
| Choose between aerial and ground mission. | |
| void | CP_ReconMissionAerial (mission_t *mission) |
| Set aerial mission. | |
| void | CP_ReconMissionGroundGo (mission_t *mission) |
| Set ground mission, and go to ground mission pos. | |
| static void | CP_ReconMissionGround (mission_t *mission) |
| Start ground mission. | |
| static bool | CP_ReconMissionNewGroundMission (mission_t *mission) |
| Choose if a new ground mission should be started. | |
| static void | CP_ReconMissionSelect (mission_t *mission) |
| Set recon mission type (aerial or ground). | |
| void | CP_ReconMissionNextStage (mission_t *mission) |
| Determine what action should be performed when a Recon mission stage ends. | |
Campaign mission.
Definition in file cp_mission_recon.cpp.
Set aerial mission.
Definition at line 107 of file cp_mission_recon.cpp.
References ccs, Date_Random(), mission_t::finalDate, mission_t::stage, STAGE_RECON_AIR, and mission_t::ufo.
Referenced by CP_ReconMissionSelect().
|
static |
Choose between aerial and ground mission.
Definition at line 93 of file cp_mission_recon.cpp.
References frand(), and mission_t::ufo.
Referenced by CP_ReconMissionSelect().
Start ground mission.
Definition at line 171 of file cp_mission_recon.cpp.
References ccs, CP_MissionAddToGeoscape(), CP_UFORemoveFromGeoscape(), Date_Random(), mission_t::finalDate, mission_t::posAssigned, mission_t::stage, STAGE_RECON_GROUND, and mission_t::ufo.
Referenced by CP_ReconMissionNextStage().
Set ground mission, and go to ground mission pos.
Definition at line 125 of file cp_mission_recon.cpp.
References ccs, cgi, CP_ChooseMap(), CP_GetRandomPosOnGeoscapeWithParameters(), CP_MissionDisableTimeLimit(), CP_MissionRemove(), CP_MissionRemoveFromGeoscape(), mapDef_t::cultures, mission_t::finalDate, GEO_PositionCloseToBase(), aircraft_t::landed, mission_t::mapDef, MAX_POS_LOOP, mapDef_t::populations, mission_t::pos, mission_t::posAssigned, mission_t::stage, STAGE_MISSION_GOTO, mapDef_t::terrains, mission_t::ufo, and UFO_SendToDestination().
Referenced by CP_BuildBaseChooseMission(), and CP_ReconMissionSelect().
Recon mission is over and is a failure: change interest values.
Definition at line 58 of file cp_mission_recon.cpp.
References CP_MissionRemove(), INT_ChangeIndividualInterest(), INTERESTCATEGORY_INTERCEPT, INTERESTCATEGORY_RECON, and INTERESTCATEGORY_TERROR_ATTACK.
Referenced by CP_MissionIsOver().
Recon mission is over and is a success: change interest values.
Definition at line 42 of file cp_mission_recon.cpp.
References AB_GetAlienBaseNumber(), CP_IsXVIStarted, CP_MissionRemove(), INT_ChangeIndividualInterest(), INTERESTCATEGORY_HARVEST, INTERESTCATEGORY_RECON, INTERESTCATEGORY_SUPPLY, and INTERESTCATEGORY_XVI.
Referenced by CP_ReconMissionNextStage().
Recon mission ends: UFO leave earth.
Definition at line 71 of file cp_mission_recon.cpp.
References ccs, CP_MissionDisableTimeLimit(), CP_MissionRemoveFromGeoscape(), mission_t::finalDate, aircraft_t::landed, mission_t::stage, STAGE_RETURN_TO_ORBIT, mission_t::ufo, and UFO_SetRandomDest().
Referenced by CP_HarvestMissionNextStage(), CP_ReconMissionNextStage(), CP_ReconMissionSelect(), CP_TerrorMissionNextStage(), and CP_XVIMissionNextStage().
|
static |
Choose if a new ground mission should be started.
Definition at line 192 of file cp_mission_recon.cpp.
References frand().
Referenced by CP_ReconMissionSelect().
Determine what action should be performed when a Recon mission stage ends.
| [in] | mission | Pointer to the mission which stage ended. |
Definition at line 224 of file cp_mission_recon.cpp.
References cgi, CP_MissionBegin(), CP_MissionRemove(), CP_ReconMissionGround(), CP_ReconMissionIsSuccess(), CP_ReconMissionLeave(), CP_ReconMissionSelect(), mission_t::stage, STAGE_COME_FROM_ORBIT, STAGE_MISSION_GOTO, STAGE_NOT_ACTIVE, STAGE_RECON_AIR, STAGE_RECON_GROUND, and STAGE_RETURN_TO_ORBIT.
Referenced by CP_MissionStageEnd().
Set recon mission type (aerial or ground).
Definition at line 201 of file cp_mission_recon.cpp.
References CP_ReconMissionAerial(), CP_ReconMissionChoose(), CP_ReconMissionGroundGo(), CP_ReconMissionLeave(), CP_ReconMissionNewGroundMission(), mission_t::stage, STAGE_COME_FROM_ORBIT, and STAGE_RECON_GROUND.
Referenced by CP_ReconMissionNextStage().