|
UFO: Alien Invasion
|
Campaign missions code. More...
#include "../../DateTime.h"#include "../../cl_shared.h"#include "../../cl_team.h"#include "../cl_game.h"#include "../../ui/ui_dataids.h"#include "cp_campaign.h"#include "cp_character.h"#include "cp_geoscape.h"#include "cp_ufo.h"#include "cp_alienbase.h"#include "cp_alien_interest.h"#include "cp_missions.h"#include "cp_mission_triggers.h"#include "cp_time.h"#include "cp_xvi.h"#include "save/save_missions.h"#include "save/save_interest.h"#include "cp_mission_callbacks.h"#include "missions/cp_mission_baseattack.h"#include "missions/cp_mission_buildbase.h"#include "missions/cp_mission_harvest.h"#include "missions/cp_mission_intercept.h"#include "missions/cp_mission_recon.h"#include "missions/cp_mission_rescue.h"#include "missions/cp_mission_supply.h"#include "missions/cp_mission_terror.h"#include "missions/cp_mission_xvi.h"#include "missions/cp_mission_ufocarrier.h"
Go to the source code of this file.
Enumerations | |
| enum | missionDetectionStatus_t { MISDET_CANT_BE_DETECTED , MISDET_ALWAYS_DETECTED , MISDET_MAY_BE_DETECTED } |
| possible mission detection status More... | |
Functions | |
| void | BATTLE_SetVars (const battleParam_t *battleParameters) |
| Set some needed cvars from a battle definition. | |
| void | BATTLE_Start (mission_t *mission, const battleParam_t *battleParameters) |
| Select the mission type and start the map from mission definition. | |
| static bool | CP_IsAlienTeamForCategory (const alienTeamCategory_t *cat, const interestCategory_t missionCat) |
| Check if an alien team category may be used for a mission category. | |
| static void | CP_SetAlienTeamByInterest (mission_t *mission, battleParam_t *battleParameters) |
| Sets the alien races used for a mission. | |
| static bool | CP_IsAlienEquipmentSelectable (const mission_t *mission, const equipDef_t *equip, linkedList_t *equipPack) |
| Check if an alien equipment may be used with a mission. | |
| static void | CP_SetAlienEquipmentByInterest (const mission_t *mission, linkedList_t *equipPack, battleParam_t *battleParameters) |
| Set alien equipment for a mission (depends on the interest values). | |
| static void | MIS_CreateAlienTeam (mission_t *mission, battleParam_t *battleParam) |
| Set number of aliens in mission. | |
| static void | CP_CreateCivilianTeam (const mission_t *mission, battleParam_t *param) |
| Create civilian team. | |
| void | CP_CreateBattleParameters (mission_t *mission, battleParam_t *param, const aircraft_t *aircraft) |
| Create parameters needed for battle. This is the data that is used for starting the tactical part of the mission. | |
| mission_t * | CP_GetMissionByIDSilent (const char *missionId) |
| Get a mission in ccs.missions by Id without error messages. | |
| mission_t * | CP_GetMissionByID (const char *missionId) |
| Get a mission in ccs.missions by Id. | |
| mission_t * | MIS_GetByIdx (int id) |
| Find mission corresponding to idx. | |
| int | MIS_GetIdx (const mission_t *mis) |
| Find idx corresponding to mission. | |
| const char * | MIS_GetName (const mission_t *mission) |
| Returns a short translated name for a mission. | |
| int | CP_CountMissionOnGeoscape (void) |
| Count the number of mission active and displayed on geoscape. | |
| const char * | MIS_GetModel (const mission_t *mission) |
| Get mission model that should be shown on the geoscape. | |
| static missionDetectionStatus_t | CP_CheckMissionVisibleOnGeoscape (const mission_t *mission) |
| Check if a mission should be visible on geoscape. | |
| void | CP_MissionRemoveFromGeoscape (mission_t *mission) |
| Removes a mission from geoscape: make it non visible and call notify functions. | |
| static messageType_t | CP_MissionGetMessageLevel (const mission_t *mission) |
| Decides which message level to take for the given mission. | |
| static const char * | CP_MissionGetMessage (const mission_t *mission) |
| Assembles a message that is send to the gamer once the given mission is added to geoscape. | |
| void | CP_MissionAddToGeoscape (mission_t *mission, bool force) |
| Add a mission to geoscape: make it visible and stop time. | |
| bool | CP_CheckNewMissionDetectedOnGeoscape (void) |
| Check if mission has been detected by radar. | |
| void | CP_UpdateMissionVisibleOnGeoscape (void) |
| Update all mission visible on geoscape (in base radar range). | |
| void | CP_UFORemoveFromGeoscape (mission_t *mission, bool destroyed) |
| Removes (temporarily or permanently) a UFO from geoscape: make it land and call notify functions. | |
| void | CP_MissionRemove (mission_t *mission) |
| Removes a mission from mission global array. | |
| void | CP_MissionDisableTimeLimit (mission_t *mission) |
| Disable time limit for given mission. | |
| bool | CP_CheckMissionLimitedInTime (const mission_t *mission) |
| Check if mission should end because of limited time. | |
| void | CP_MissionNotifyBaseDestroyed (const base_t *base) |
| Notify that a base has been removed. | |
| void | CP_MissionNotifyInstallationDestroyed (const installation_t *installation) |
| Notify missions that an installation has been destroyed. | |
| static bool | CP_MapIsSelectable (const mission_t *mission, const mapDef_t *md, const vec2_t pos) |
| Check if a map may be selected for mission. | |
| bool | CP_ChooseMap (mission_t *mission, const vec2_t pos) |
| Choose a map for given mission. | |
| void | CP_MissionStageEnd (const campaign_t *campaign, mission_t *mission) |
| Determine what action should be performed when a mission stage ends. | |
| void | CP_MissionIsOver (mission_t *mission) |
| Mission is finished because Phalanx team won it. | |
| void | CP_MissionIsOverByUFO (aircraft_t *ufocraft) |
| Mission is finished because Phalanx team ended it. | |
| void | CP_MissionEndActions (mission_t *mission, aircraft_t *aircraft, bool won) |
| Actions to be done after mission finished. | |
| void | CP_MissionEnd (const campaign_t *campaign, mission_t *mission, const battleParam_t *battleParameters, bool won) |
| Closing actions after fighting a battle. | |
| bool | CP_CheckNextStageDestination (const campaign_t *campaign, aircraft_t *ufocraft) |
| Check if a stage mission is over when UFO reached destination. | |
| void | CP_UFOProceedMission (const campaign_t *campaign, aircraft_t *ufo) |
| Make UFO proceed with its mission when the fight with another aircraft is over (and UFO survived). | |
| void | CP_SpawnCrashSiteMission (aircraft_t *ufo) |
| Spawn a new crash site after a UFO has been destroyed. | |
| void | CP_SpawnRescueMission (aircraft_t *aircraft, aircraft_t *ufo) |
| Spawn a new rescue mission for a crashed (phalanx) aircraft. | |
| static bool | MIS_IsSpawnedFromGround (const mission_t *mission) |
| Decides if the mission should be spawned from the ground (without UFO). | |
| bool | CP_MissionBegin (mission_t *mission) |
| mission begins: UFO arrive on earth. | |
| ufoType_t | CP_MissionChooseUFO (const mission_t *mission) |
| Choose UFO type for a given mission category. | |
| static void | CP_SetMissionName (mission_t *mission) |
| Set mission name. | |
| mission_t * | CP_CreateNewMission (interestCategory_t category, bool beginNow) |
| Create a new mission of given category. | |
| static interestCategory_t | CP_SelectNewMissionType (void) |
| Select new mission type. | |
| void | CP_SpawnNewMissions (void) |
| Spawn new missions. | |
| void | CP_InitializeSpawningDelay (void) |
| Initialize spawning delay. | |
| bool | MIS_SaveXML (xmlNode_t *parent) |
| Save callback for savegames in XML Format. | |
| bool | MIS_LoadXML (xmlNode_t *parent) |
| Load callback for savegames in XML Format. | |
| void | MIS_InitStartup (void) |
| Init actions for missions-subsystem. | |
| void | MIS_Shutdown (void) |
| Closing actions for missions-subsystem. | |
Variables | |
| const int | MAX_POS_LOOP = 10 |
| static const float | MIN_CRASHEDUFO_CONDITION = 0.2f |
| static const float | MAX_CRASHEDUFO_CONDITION = 0.81f |
| static const cmdList_t | debugMissionCmds [] |
Campaign missions code.
Definition in file cp_missions.cpp.
possible mission detection status
Definition at line 55 of file cp_missions.cpp.
| void BATTLE_SetVars | ( | const battleParam_t * | battleParameters | ) |
Set some needed cvars from a battle definition.
| [in] | battleParameters | battle definition pointer with the needed data to set the cvars to |
Definition at line 79 of file cp_missions.cpp.
References alienTeamGroup_t::alienChrTemplates, battleParam_t::alienEquipment, battleParam_t::aliens, battleParam_t::alienTeamGroup, alienTeamGroup_t::alienTeams, cgi, battleParam_t::civilians, battleParam_t::civTeam, i, MAX_TEAMS_PER_MISSION, and alienTeamGroup_t::numAlienTeams.
Referenced by CP_StartSelectedMission().
| void BATTLE_Start | ( | mission_t * | mission, |
| const battleParam_t * | battleParameters ) |
Select the mission type and start the map from mission definition.
| [in] | mission | Mission definition to start the map from |
| [in] | battleParameters | Context data of the battle |
Definition at line 107 of file cp_missions.cpp.
References B_AssembleMap(), mission_t::missionData_t::base, mission_t::category, ccs, cgi, mission_t::crashed, mission_t::data, ERR_DROP, GEO_IsNight(), mission_t::id, INTERESTCATEGORY_BASE_ATTACK, mission_t::mapDef, mapDef_t::mapTheme, battleParam_t::param, mapDef_t::params, base_t::pos, mission_t::pos, and battleParam_t::zoneType.
Referenced by CP_StartSelectedMission().
| bool CP_CheckMissionLimitedInTime | ( | const mission_t * | mission | ) |
Check if mission should end because of limited time.
Definition at line 905 of file cp_missions.cpp.
References mission_t::finalDate, and DateTime::getDateAsDays().
Referenced by CP_CheckMissionEnd(), and CP_EndRescueMission().
|
static |
Check if a mission should be visible on geoscape.
| [in] | mission | Pointer to mission we want to check visibility. |
Definition at line 639 of file cp_missions.cpp.
References mission_t::category, mission_t::crashed, aircraft_t::detected, INTERESTCATEGORY_RESCUE, aircraft_t::landed, MISDET_ALWAYS_DETECTED, MISDET_CANT_BE_DETECTED, MISDET_MAY_BE_DETECTED, mission_t::pos, mission_t::posAssigned, RADAR_CheckRadarSensored(), mission_t::stage, STAGE_BASE_ATTACK, STAGE_BASE_DISCOVERED, STAGE_BUILD_BASE, STAGE_COME_FROM_ORBIT, STAGE_HARVEST, STAGE_INTERCEPT, STAGE_MISSION_GOTO, STAGE_NOT_ACTIVE, STAGE_OVER, STAGE_RECON_AIR, STAGE_RECON_GROUND, STAGE_RETURN_TO_ORBIT, STAGE_SPREAD_XVI, STAGE_SUBVERT_GOV, STAGE_SUPPLY, STAGE_TERROR_MISSION, and mission_t::ufo.
Referenced by CP_CheckNewMissionDetectedOnGeoscape(), CP_MissionAddToGeoscape(), and CP_UpdateMissionVisibleOnGeoscape().
| bool CP_CheckNewMissionDetectedOnGeoscape | ( | void | ) |
Check if mission has been detected by radar.
DETECTION_INTERVAL. Definition at line 770 of file cp_missions.cpp.
References CP_CheckMissionVisibleOnGeoscape(), CP_MissionAddToGeoscape(), DETECTION_INTERVAL, frand(), MIS_Foreach, MISDET_MAY_BE_DETECTED, and UFO_DetectNewUFO().
Referenced by CP_CampaignFunctionPeriodicCall().
| bool CP_CheckNextStageDestination | ( | const campaign_t * | campaign, |
| aircraft_t * | ufocraft ) |
Check if a stage mission is over when UFO reached destination.
| [in] | campaign | The campaign data structure |
| [in] | ufocraft | Pointer to the ufo that reached destination. |
Definition at line 1302 of file cp_missions.cpp.
References CP_MissionStageEnd(), aircraft_t::mission, mission_t::stage, STAGE_COME_FROM_ORBIT, STAGE_MISSION_GOTO, and STAGE_RETURN_TO_ORBIT.
Referenced by UFO_CampaignRunUFOs().
Choose a map for given mission.
| [in,out] | mission | Pointer to the mission where a new map should be added |
| [in] | pos | position of the mission (nullptr if the position will be chosen afterwards) |
< Number of maps fulfilling mission conditions and appeared less often during game.
Definition at line 996 of file cp_missions.cpp.
References mission_t::category, cgi, CP_MapIsSelectable(), cp_missiontest, mission_t::crashed, DEBUG_CLIENT, ERR_DROP, GEO_GetColor(), aircraft_t::getUfoType(), mapDef_t::id, INTERESTCATEGORY_RESCUE, mission_t::mapDef, MapDef_ForeachSingleplayerCampaign, MapIsWater, MAPTYPE_TERRAIN, mapDef_t::timesAlreadyUsed, and mission_t::ufo.
Referenced by CP_HarvestMissionGo(), CP_ReconMissionGroundGo(), CP_SpawnCrashSiteMission(), CP_SpawnRescueMission(), CP_TerrorMissionGo(), and TEST_F().
Count the number of mission active and displayed on geoscape.
Definition at line 567 of file cp_missions.cpp.
References MIS_Foreach.
Referenced by GEO_GetGeoscapeAngle().
| void CP_CreateBattleParameters | ( | mission_t * | mission, |
| battleParam_t * | param, | ||
| const aircraft_t * | aircraft ) |
Create parameters needed for battle. This is the data that is used for starting the tactical part of the mission.
| [in] | mission | Pointer to the mission that generates the battle |
| [out] | param | The battle parameters to set |
| [in] | aircraft | the aircraft to go to the mission with |
Definition at line 339 of file cp_missions.cpp.
References _, mapDef_t::aircraft, mission_t::missionData_t::aircraft, mission_t::category, cgi, Com_sprintf(), cp_campaignPool, CP_CreateCivilianTeam(), mission_t::crashed, mission_t::data, frand(), GEO_GetColor(), aircraft_t::getUfoType(), aircraft_t::id, mapDef_t::id, INTERESTCATEGORY_ALIENBASE, INTERESTCATEGORY_RESCUE, mission_t::mapDef, mapDef_t::mapTheme, MAPTYPE_TERRAIN, MAX_CRASHEDUFO_CONDITION, MIN_CRASHEDUFO_CONDITION, MIS_CreateAlienTeam(), battleParam_t::mission, aircraft_t::model, mission_t::onwin, battleParam_t::param, mission_t::pos, mission_t::posAssigned, Q_streq, battleParam_t::retriable, mission_t::ufo, UFO_GetName(), mapDef_t::ufos, and battleParam_t::zoneType.
Referenced by AM_Go_f(), CP_StartSelectedMission(), and TEST_F().
|
static |
Create civilian team.
| [in] | mission | Pointer to the mission that generates the battle |
| [out] | param | The battlescape parameter container |
Definition at line 310 of file cp_missions.cpp.
References battleParam_t::civilians, battleParam_t::civTeam, mapDef_t::civTeam, GEO_GetCivilianNumberByPosition(), GEO_GetNation(), nation_t::id, mission_t::mapDef, battleParam_t::nation, mission_t::pos, mission_t::posAssigned, and Q_strncpyz().
Referenced by CP_CreateBattleParameters().
| mission_t * CP_CreateNewMission | ( | interestCategory_t | category, |
| bool | beginNow ) |
Create a new mission of given category.
| [in] | category | category of the mission |
| [in] | beginNow | true if the mission should begin now |
Definition at line 1674 of file cp_missions.cpp.
References mission_t::category, ccs, CP_BaseAttackMissionOnSpawn(), CP_BuildBaseMissionOnSpawn(), CP_SetMissionName(), CP_TerrorMissionOnSpawn(), Date_Random(), mission_t::finalDate, mission_t::idx, mission_t::initialIndividualInterest, mission_t::initialOverallInterest, INTERESTCATEGORY_BASE_ATTACK, INTERESTCATEGORY_BUILDING, INTERESTCATEGORY_MAX, INTERESTCATEGORY_TERROR_ATTACK, LIST_Add(), OBJZERO, mission_t::stage, STAGE_NOT_ACTIVE, mission_t::startDate, and mission_t::ufo.
Referenced by CP_SpawnAlienBaseMission(), CP_SpawnNewMissions(), CP_SpawnRescueMission(), CP_SpawnUFOCarrier_f(), CP_StartXVISpreading_f(), TEST_F(), TEST_F(), and TEST_F().
| mission_t * CP_GetMissionByID | ( | const char * | missionId | ) |
Get a mission in ccs.missions by Id.
| [in] | missionId | Unique string id for the mission |
Definition at line 433 of file cp_missions.cpp.
References cgi, and CP_GetMissionByIDSilent().
Referenced by AIR_PostLoadInitMissions().
| mission_t * CP_GetMissionByIDSilent | ( | const char * | missionId | ) |
Get a mission in ccs.missions by Id without error messages.
| [in] | missionId | Unique string id for the mission |
Definition at line 415 of file cp_missions.cpp.
References MIS_Foreach, and Q_streq.
Referenced by CP_GetMissionByID(), and CP_SetMissionName().
Initialize spawning delay.
Definition at line 1786 of file cp_missions.cpp.
References ccs, and DELAY_BETWEEN_MISSION_SPAWNING.
Referenced by CP_CampaignInit().
|
static |
Check if an alien equipment may be used with a mission.
| [in] | mission | Pointer to the mission. |
| [in] | equip | Pointer to the alien equipment to check. |
| [in] | equipPack | Equipment definitions that may be used |
Definition at line 221 of file cp_missions.cpp.
References equipDef_t::id, mission_t::initialOverallInterest, LIST_Foreach, equipDef_t::maxInterest, equipDef_t::minInterest, name, and Q_strstart().
Referenced by CP_SetAlienEquipmentByInterest().
|
static |
Check if an alien team category may be used for a mission category.
| [in] | cat | Pointer to the alien team category. |
| [in] | missionCat | Mission category to check. |
Definition at line 162 of file cp_missions.cpp.
References i, alienTeamCategory_t::missionCategories, and alienTeamCategory_t::numMissionCategories.
Referenced by CP_SetAlienTeamByInterest().
Check if a map may be selected for mission.
| [in] | mission | Pointer to the mission where mapDef should be added |
| [in] | pos | position of the mission (nullptr if the position will be chosen afterwards) |
| [in] | md | The map description data (what it is suitable for) |
Definition at line 960 of file cp_missions.cpp.
References cgi, mission_t::crashed, mapDef_t::cultures, GEO_PositionFitsTCPNTypes(), aircraft_t::getUfoType(), mapDef_t::populations, mapDef_t::storyRelated, mapDef_t::terrains, type, mission_t::ufo, and mapDef_t::ufos.
Referenced by CP_ChooseMap().
Add a mission to geoscape: make it visible and stop time.
| [in] | mission | Pointer to added mission. |
| [in] | force | true if the mission should be added even for mission needing a probabilty test to be seen. |
Definition at line 741 of file cp_missions.cpp.
References _, cgi, CP_CheckMissionVisibleOnGeoscape(), CP_GameTimeStop(), CP_MissionGetMessage(), CP_MissionGetMessageLevel(), aircraft_t::detected, GEO_UpdateGeoscapeDock(), MISDET_CANT_BE_DETECTED, MISDET_MAY_BE_DETECTED, MS_AddNewMessage(), mission_t::onGeoscape, aircraft_t::pos, mission_t::pos, mission_t::stage, and mission_t::ufo.
Referenced by CP_BeginRescueMission(), CP_BuildBaseSubvertGovernment(), CP_CheckNewMissionDetectedOnGeoscape(), CP_HarvestMissionStart(), CP_ReconMissionGround(), CP_SpawnAlienBaseMission(), CP_SpawnCrashSiteMission(), CP_TerrorMissionStart(), CP_UpdateMissionVisibleOnGeoscape(), and CP_XVIMissionStart().
| bool CP_MissionBegin | ( | mission_t * | mission | ) |
mission begins: UFO arrive on earth.
| [in] | mission | The mission to change the state for |
Definition at line 1537 of file cp_missions.cpp.
References ccs, cgi, CP_MissionChooseUFO(), CP_MissionDisableTimeLimit(), CP_MissionRemove(), mission_t::finalDate, mission_t::id, mission_t::idx, MIS_IsSpawnedFromGround(), mission_t::stage, STAGE_COME_FROM_ORBIT, mission_t::ufo, UFO_AddToGeoscape(), and UFO_NONE.
Referenced by CP_BaseAttackMissionNextStage(), CP_BuildBaseMissionNextStage(), CP_HarvestMissionNextStage(), CP_InterceptNextStage(), CP_ReconMissionNextStage(), CP_TerrorMissionNextStage(), and CP_XVIMissionNextStage().
Choose UFO type for a given mission category.
| [in] | mission | Pointer to the mission where the UFO will be added |
Definition at line 1573 of file cp_missions.cpp.
References mission_t::category, cgi, CP_BasemissionIsSubvertingGovernmentMission(), ERR_DROP, frand(), int(), INTERESTCATEGORY_ALIENBASE, INTERESTCATEGORY_BASE_ATTACK, INTERESTCATEGORY_BUILDING, INTERESTCATEGORY_HARVEST, INTERESTCATEGORY_INTERCEPT, INTERESTCATEGORY_INTERCEPTBOMBING, INTERESTCATEGORY_MAX, INTERESTCATEGORY_NONE, INTERESTCATEGORY_RECON, INTERESTCATEGORY_RESCUE, INTERESTCATEGORY_SUBVERT, INTERESTCATEGORY_SUPPLY, INTERESTCATEGORY_TERROR_ATTACK, INTERESTCATEGORY_UFOCARRIER, INTERESTCATEGORY_XVI, UFO_GetAvailableUFOsForMission(), UFO_MAX, and UFO_NONE.
Referenced by CP_MissionBegin(), and CP_SupplyMissionCreate().
Disable time limit for given mission.
Definition at line 894 of file cp_missions.cpp.
References mission_t::finalDate.
Referenced by CP_BaseAttackGoToBase(), CP_BaseAttackMissionLeave(), CP_BaseAttackStartMission(), CP_BuildBaseGovernmentLeave(), CP_BuildBaseMissionLeave(), CP_HarvestMissionGo(), CP_InterceptGoToInstallation(), CP_InterceptMissionLeave(), CP_LeaveRescueMission(), CP_MissionBegin(), CP_ReconMissionGroundGo(), CP_ReconMissionLeave(), CP_SpawnAlienBaseMission(), CP_SpawnRescueMission(), CP_SupplyMissionCreate(), CP_SupplyMissionLeave(), and CP_TerrorMissionGo().
| void CP_MissionEnd | ( | const campaign_t * | campaign, |
| mission_t * | mission, | ||
| const battleParam_t * | battleParameters, | ||
| bool | won ) |
Closing actions after fighting a battle.
| [in] | campaign | The campaign we play |
| [in,out] | mission | The mission the battle was on |
| [in] | battleParameters | Parameters of the battle |
| [in] | won | if PHALANX won |
Definition at line 1250 of file cp_missions.cpp.
References AIR_IsEmployeeInAircraft(), base_t::aircraftCurrent, mission_t::missionData_t::base, ccs, cgi, CHAR_UpdateData(), CHAR_UpdateStats(), CP_CheckLostCondition(), CP_ExecuteMissionTrigger(), CP_HandleNationData(), CP_MissionEndActions(), mission_t::data, DEBUG_CLIENT, E_DeleteEmployee(), E_Foreach, EMPL_SOLDIER, GEO_GetMissionAircraft, aircraft_t::homebase, campaign_t::minhappiness, mission_t::missionResults, battleParam_t::nation, mission_t::stage, STAGE_BASE_ATTACK, and base_t::storage.
Referenced by GAME_CP_Results_f().
| void CP_MissionEndActions | ( | mission_t * | mission, |
| aircraft_t * | aircraft, | ||
| bool | won ) |
Actions to be done after mission finished.
| [in,out] | mission | Pointer to the finished mission |
| [in,out] | aircraft | Pointer to the dropship done the mission |
| [in] | won | Boolean flag if thew mission was successful (from PHALANX's PoV) |
Definition at line 1215 of file cp_missions.cpp.
References _, AIR_AircraftReturnToBase(), B_DumpAircraftToHomeBase(), mission_t::category, Com_sprintf(), CP_BaseAttackMissionDestroyBase(), CP_BaseAttackMissionIsFailure(), CP_EndRescueMission(), cp_messageBuffer, CP_MissionIsOver(), aircraft_t::homebase, INTERESTCATEGORY_RESCUE, MS_AddNewMessage(), mission_t::stage, and STAGE_BASE_ATTACK.
Referenced by CP_MissionEnd().
|
inlinestatic |
Assembles a message that is send to the gamer once the given mission is added to geoscape.
| [in] | mission | The mission that was added to the geoscape and for that a message should be created |
Definition at line 721 of file cp_missions.cpp.
References _, mission_t::missionData_t::aircraft, mission_t::category, Com_sprintf(), cp_messageBuffer, mission_t::data, GEO_GetNation(), INTERESTCATEGORY_RESCUE, aircraft_t::name, nation_t::name, and mission_t::pos.
Referenced by CP_MissionAddToGeoscape().
|
inlinestatic |
Decides which message level to take for the given mission.
| [in] | mission | The mission to chose the message level for |
Definition at line 700 of file cp_missions.cpp.
References mission_t::crashed, MSG_BASEATTACK, MSG_CRASHSITE, MSG_STANDARD, MSG_TERRORSITE, mission_t::stage, STAGE_BASE_ATTACK, and STAGE_TERROR_MISSION.
Referenced by CP_MissionAddToGeoscape().
Mission is finished because Phalanx team won it.
| [in] | mission | Pointer to the mission that is ended. |
Definition at line 1140 of file cp_missions.cpp.
References mission_t::category, cgi, CP_BaseAttackMissionIsFailure(), CP_BaseAttackMissionIsSuccess(), CP_BuildBaseMissionBaseDestroyed(), CP_BuildBaseMissionIsFailure(), CP_BuildBaseMissionIsSuccess(), CP_HarvestMissionIsFailure(), CP_InterceptMissionIsFailure(), CP_InterceptMissionIsSuccess(), CP_MissionRemove(), CP_ReconMissionIsFailure(), CP_SupplyMissionIsFailure(), CP_SupplyMissionIsSuccess(), CP_TerrorMissionIsFailure(), CP_XVIMissionIsFailure(), CP_XVIMissionIsSuccess(), INTERESTCATEGORY_ALIENBASE, INTERESTCATEGORY_BASE_ATTACK, INTERESTCATEGORY_BUILDING, INTERESTCATEGORY_HARVEST, INTERESTCATEGORY_INTERCEPT, INTERESTCATEGORY_INTERCEPTBOMBING, INTERESTCATEGORY_MAX, INTERESTCATEGORY_NONE, INTERESTCATEGORY_RECON, INTERESTCATEGORY_RESCUE, INTERESTCATEGORY_SUBVERT, INTERESTCATEGORY_SUPPLY, INTERESTCATEGORY_TERROR_ATTACK, INTERESTCATEGORY_UFOCARRIER, INTERESTCATEGORY_XVI, mission_t::stage, STAGE_BASE_ATTACK, STAGE_BUILD_BASE, STAGE_INTERCEPT, STAGE_SPREAD_XVI, and STAGE_SUPPLY.
Referenced by CP_MissionEndActions(), CP_MissionIsOverByUFO(), and CP_MissionStageEnd().
| void CP_MissionIsOverByUFO | ( | aircraft_t * | ufocraft | ) |
Mission is finished because Phalanx team ended it.
| [in] | ufocraft | Pointer to the UFO involved in this mission |
Definition at line 1203 of file cp_missions.cpp.
References CP_MissionIsOver(), and aircraft_t::mission.
Referenced by AIRFIGHT_ActionsAfterAirfight().
Notify that a base has been removed.
Definition at line 920 of file cp_missions.cpp.
References CP_BaseAttackMissionLeave(), INTERESTCATEGORY_BASE_ATTACK, and MIS_Foreach.
Referenced by B_Destroy().
| void CP_MissionNotifyInstallationDestroyed | ( | const installation_t * | installation | ) |
Notify missions that an installation has been destroyed.
| [in] | installation | Pointer to the installation that has been destroyed. |
Definition at line 937 of file cp_missions.cpp.
References CP_InterceptMissionLeave(), INTERESTCATEGORY_INTERCEPT, and MIS_Foreach.
Referenced by INS_DestroyInstallation().
Removes a mission from mission global array.
Definition at line 871 of file cp_missions.cpp.
References ccs, cgi, CP_MissionRemoveFromGeoscape(), CP_UFORemoveFromGeoscape(), ERR_DROP, mission_t::id, and mission_t::ufo.
Referenced by CP_BaseAttackGoToBase(), CP_BaseAttackMissionIsFailure(), CP_BaseAttackMissionIsSuccess(), CP_BaseAttackMissionNextStage(), CP_BeginRescueMission(), CP_BuildBaseMissionBaseDestroyed(), CP_BuildBaseMissionIsFailure(), CP_BuildBaseMissionIsSuccess(), CP_BuildBaseMissionNextStage(), CP_BuildBaseSetUpBase(), CP_HarvestMissionGo(), CP_HarvestMissionIsFailure(), CP_HarvestMissionIsSuccess(), CP_HarvestMissionNextStage(), CP_InterceptGoToInstallation(), CP_InterceptMissionIsFailure(), CP_InterceptMissionIsSuccess(), CP_InterceptNextStage(), CP_MissionBegin(), CP_MissionIsOver(), CP_MissionStageEnd(), CP_ReconMissionGroundGo(), CP_ReconMissionIsFailure(), CP_ReconMissionIsSuccess(), CP_ReconMissionNextStage(), CP_RescueNextStage(), CP_SetAlienTeamByInterest(), CP_SpawnCrashSiteMission(), CP_SpawnRescueMission(), CP_SupplyGoToBase(), CP_SupplyMissionCreate(), CP_SupplyMissionIsFailure(), CP_SupplyMissionIsSuccess(), CP_SupplyMissionNextStage(), CP_SupplySetStayAtBase(), CP_TerrorMissionGo(), CP_TerrorMissionIsFailure(), CP_TerrorMissionIsSuccess(), CP_TerrorMissionNextStage(), CP_XVIMissionIsFailure(), CP_XVIMissionIsSuccess(), and CP_XVIMissionNextStage().
Removes a mission from geoscape: make it non visible and call notify functions.
Definition at line 683 of file cp_missions.cpp.
References AIR_AircraftsNotifyMissionRemoved(), mission_t::category, GEO_NotifyMissionRemoved(), INTERESTCATEGORY_BASE_ATTACK, and mission_t::onGeoscape.
Referenced by CP_InterceptMissionLeave(), CP_LeaveRescueMission(), CP_MissionRemove(), CP_ReconMissionGroundGo(), CP_ReconMissionLeave(), and CP_UpdateMissionVisibleOnGeoscape().
| void CP_MissionStageEnd | ( | const campaign_t * | campaign, |
| mission_t * | mission ) |
Determine what action should be performed when a mission stage ends.
| [in] | campaign | The campaign data structure |
| [in] | mission | Pointer to the mission which stage ended. |
Definition at line 1084 of file cp_missions.cpp.
References mission_t::category, ccs, cgi, CP_BaseAttackMissionNextStage(), CP_BuildBaseMissionNextStage(), CP_HarvestMissionNextStage(), CP_InterceptNextStage(), CP_MissionIsOver(), CP_MissionRemove(), CP_ReconMissionNextStage(), CP_RescueNextStage(), CP_SupplyMissionNextStage(), CP_TerrorMissionNextStage(), CP_UFOCarrierNextStage(), CP_XVIMissionNextStage(), mission_t::crashed, DEBUG_CLIENT, mission_t::id, INTERESTCATEGORY_ALIENBASE, INTERESTCATEGORY_BASE_ATTACK, INTERESTCATEGORY_BUILDING, INTERESTCATEGORY_HARVEST, INTERESTCATEGORY_INTERCEPT, INTERESTCATEGORY_INTERCEPTBOMBING, INTERESTCATEGORY_MAX, INTERESTCATEGORY_NONE, INTERESTCATEGORY_RECON, INTERESTCATEGORY_RESCUE, INTERESTCATEGORY_SUBVERT, INTERESTCATEGORY_SUPPLY, INTERESTCATEGORY_TERROR_ATTACK, INTERESTCATEGORY_UFOCARRIER, INTERESTCATEGORY_XVI, and mission_t::stage.
Referenced by CP_CheckMissionEnd(), CP_CheckNextStageDestination(), and CP_UFOProceedMission().
|
static |
Select new mission type.
Definition at line 1717 of file cp_missions.cpp.
References ccs, frand(), i, int(), and INTERESTCATEGORY_MAX.
Referenced by CP_SpawnNewMissions().
|
static |
Set alien equipment for a mission (depends on the interest values).
| [in] | mission | Pointer to the mission that generates the battle. |
| [in] | equipPack | Equipment definitions that may be used |
| [in] | battleParameters | Context data of the battle |
Definition at line 243 of file cp_missions.cpp.
References battleParam_t::alienEquipment, cgi, Com_sprintf(), CP_IsAlienEquipmentSelectable(), DEBUG_CLIENT, ERR_DROP, i, equipDef_t::id, and mission_t::id.
Referenced by MIS_CreateAlienTeam().
|
static |
Sets the alien races used for a mission.
| [in] | mission | Pointer to the mission. |
| [out] | battleParameters | The battlescape parameter the alien team is stored in |
Definition at line 177 of file cp_missions.cpp.
References battleParam_t::alienTeamGroup, alienTeamCategory_t::alienTeamGroups, mission_t::category, ccs, cgi, CP_IsAlienTeamForCategory(), CP_MissionRemove(), ERR_DROP, i, mission_t::id, mission_t::initialOverallInterest, alienTeamGroup_t::maxInterest, alienTeamGroup_t::minInterest, and alienTeamCategory_t::numAlienTeamGroups.
Referenced by MIS_CreateAlienTeam().
Set mission name.
| [out] | mission | The mission to set the name for |
Definition at line 1645 of file cp_missions.cpp.
References mission_t::category, ccs, cgi, Com_sprintf(), CP_GetMissionByIDSilent(), mission_t::id, and mission_t::initialOverallInterest.
Referenced by CP_CreateNewMission().
| void CP_SpawnCrashSiteMission | ( | aircraft_t * | ufo | ) |
Spawn a new crash site after a UFO has been destroyed.
| [in,out] | ufo | The ufo to spawn a crash site mission for |
Definition at line 1354 of file cp_missions.cpp.
References ccs, cgi, CP_ChooseMap(), CP_MissionAddToGeoscape(), CP_MissionRemove(), CP_UFORemoveFromGeoscape(), mission_t::crashed, Date_Random(), ERR_DROP, mission_t::finalDate, aircraft_t::id, mission_t::mapDef, aircraft_t::mission, aircraft_t::pos, mission_t::pos, mission_t::posAssigned, and Vector2Copy.
Referenced by AIRFIGHT_ActionsAfterAirfight(), and CP_AttackUFOCarrier_f().
Spawn new missions.
Definition at line 1738 of file cp_missions.cpp.
References AB_GetAlienBaseNumber(), ccs, cgi, CP_CreateNewMission(), CP_SelectNewMissionType(), DEBUG_CLIENT, DELAY_BETWEEN_MISSION_SPAWNING, EARLY_UFO_RUSH_INTEREST, FINAL_OVERALL_INTEREST, frand(), i, int(), INT_ChangeIndividualInterest(), INTERESTCATEGORY_SUPPLY, and type.
Referenced by CP_ResetCampaignData().
| void CP_SpawnRescueMission | ( | aircraft_t * | aircraft, |
| aircraft_t * | ufo ) |
Spawn a new rescue mission for a crashed (phalanx) aircraft.
| [in] | aircraft | The crashed aircraft to spawn the rescue mission for. |
| [in] | ufo | The UFO that shot down the phalanx aircraft, can also be nullptr if the UFO was destroyed. |
Definition at line 1395 of file cp_missions.cpp.
References aircraft_t::acTeam, AIR_CRASHED, AIR_DestroyAircraft(), AIR_GetFirstFromBase(), AIR_GetHangarCapacityType(), AIR_GetPilot(), AIR_PilotSurvivedCrash(), mission_t::missionData_t::aircraft, CAP_AddCurrent(), cgi, CP_ChooseMap(), CP_CreateNewMission(), CP_MissionDisableTimeLimit(), CP_MissionRemove(), mission_t::data, E_DeleteEmployee(), ERR_DROP, GEO_IsAircraftSelected, GEO_SetSelectedAircraft, aircraft_t::homebase, mission_t::id, INTERESTCATEGORY_RESCUE, LIST_Foreach, mission_t::mapDef, MAX_CAP, aircraft_t::mission, aircraft_t::pos, mission_t::pos, character_t::score, mission_t::stage, STAGE_MISSION_GOTO, aircraft_t::status, mission_t::ufo, Vector2Copy, and void().
Referenced by AIRFIGHT_ActionsAfterAirfight(), and B_MoveAircraftOnGeoscapeToOtherBases().
| void CP_UFOProceedMission | ( | const campaign_t * | campaign, |
| aircraft_t * | ufo ) |
Make UFO proceed with its mission when the fight with another aircraft is over (and UFO survived).
| [in] | campaign | The campaign data structure |
| [in] | ufo | Pointer to the ufo that should proceed a mission. |
Definition at line 1328 of file cp_missions.cpp.
References AIR_TRANSIT, AIRFIGHT_ChooseWeapon(), AIRFIGHT_WEAPON_CAN_NEVER_SHOOT, CP_MissionStageEnd(), INTERESTCATEGORY_INTERCEPT, aircraft_t::maxWeapons, aircraft_t::mission, aircraft_t::pos, STAGE_MISSION_GOTO, STAGE_RETURN_TO_ORBIT, aircraft_t::status, UFO_SendToDestination(), UFO_SetRandomDest(), and aircraft_t::weapons.
Referenced by AIRFIGHT_ActionsAfterAirfight(), AIRFIGHT_ExecuteActions(), and UFO_CheckShootBack().
Removes (temporarily or permanently) a UFO from geoscape: make it land and call notify functions.
| [in] | mission | Pointer to mission. |
| [in] | destroyed | True if the UFO has been destroyed, false if it's only landed. |
Definition at line 828 of file cp_missions.cpp.
References AIR_AircraftsNotifyUFORemoved(), AIRFIGHT_RemoveProjectileAimingAircraft(), aircraft_t::detected, GEO_NotifyUFORemoved(), aircraft_t::landed, MIS_Foreach, aircraft_t::pos, RADAR_CheckRadarSensored(), RADAR_NotifyUFORemoved(), mission_t::ufo, and UFO_RemoveFromGeoscape().
Referenced by CP_BaseAttackStartMission(), CP_BuildBaseSetUpBase(), CP_BuildBaseSubvertGovernment(), CP_HarvestMissionStart(), CP_MissionRemove(), CP_ReconMissionGround(), CP_SpawnCrashSiteMission(), CP_SupplySetStayAtBase(), CP_TerrorMissionStart(), and CP_XVIMissionStart().
Update all mission visible on geoscape (in base radar range).
Definition at line 807 of file cp_missions.cpp.
References CP_CheckMissionVisibleOnGeoscape(), CP_MissionAddToGeoscape(), CP_MissionRemoveFromGeoscape(), MIS_Foreach, MISDET_ALWAYS_DETECTED, and MISDET_CANT_BE_DETECTED.
Referenced by RADAR_UpdateBaseRadarCoverage_f(), and RADAR_UpdateInstallationRadarCoverage().
|
static |
Set number of aliens in mission.
| [in,out] | mission | Pointer to the mission that generates the battle. |
| [in,out] | battleParam | The battlescape parameter container |
Definition at line 283 of file cp_missions.cpp.
References battleParam_t::aliens, battleParam_t::alienTeamGroup, alienTeamGroup_t::categoryIdx, ccs, CP_SetAlienEquipmentByInterest(), CP_SetAlienTeamByInterest(), mission_t::mapDef, alienTeamGroup_t::maxAlienCount, mapDef_t::maxAliens, aircraft_t::maxTeamSize, alienTeamGroup_t::minAlienCount, mission_t::posAssigned, and mission_t::ufo.
Referenced by CP_CreateBattleParameters().
Find mission corresponding to idx.
Definition at line 448 of file cp_missions.cpp.
References MIS_Foreach.
Referenced by AIR_SendAircraftToMission_f(), GEO_GetMissionAngle(), MIS_GeoSelectMission_f(), and TEST_F().
Find idx corresponding to mission.
Definition at line 461 of file cp_missions.cpp.
References mission_t::idx.
Referenced by GEO_Click().
| const char * MIS_GetModel | ( | const mission_t * | mission | ) |
Get mission model that should be shown on the geoscape.
| [in] | mission | Pointer to the mission drawn on geoscape |
Definition at line 590 of file cp_missions.cpp.
References mission_t::category, cgi, mission_t::crashed, DEBUG_CLIENT, ERR_DROP, mission_t::id, INTERESTCATEGORY_ALIENBASE, INTERESTCATEGORY_BASE_ATTACK, INTERESTCATEGORY_BUILDING, INTERESTCATEGORY_HARVEST, INTERESTCATEGORY_INTERCEPT, INTERESTCATEGORY_INTERCEPTBOMBING, INTERESTCATEGORY_MAX, INTERESTCATEGORY_NONE, INTERESTCATEGORY_RECON, INTERESTCATEGORY_RESCUE, INTERESTCATEGORY_SUBVERT, INTERESTCATEGORY_SUPPLY, INTERESTCATEGORY_TERROR_ATTACK, INTERESTCATEGORY_UFOCARRIER, INTERESTCATEGORY_XVI, mission_t::mapDef, and mapDef_t::storyRelated.
Referenced by GEO_DrawMapOneMission(), and GEO_UpdateGeoscapeDock().
| const char * MIS_GetName | ( | const mission_t * | mission | ) |
Returns a short translated name for a mission.
| [in] | mission | Pointer to the mission to get name for |
Definition at line 470 of file cp_missions.cpp.
References _, mission_t::missionData_t::aircraft, mission_t::missionData_t::base, mission_t::category, mission_t::missionData_t::city, mission_t::crashed, mission_t::data, aircraft_t::detected, GEO_GetNation(), INTERESTCATEGORY_RESCUE, aircraft_t::landed, aircraft_t::name, base_t::name, city_t::name, nation_t::name, mission_t::pos, mission_t::stage, STAGE_BASE_ATTACK, STAGE_BASE_DISCOVERED, STAGE_TERROR_MISSION, mission_t::ufo, UFO_GetName(), and va().
Referenced by AIR_GeoSelectAircraft_f(), AIR_Move(), GEO_Click(), GEO_DrawMapOneMission(), GEO_GetMissionText(), and GEO_UpdateGeoscapeDock().
Init actions for missions-subsystem.
Definition at line 2226 of file cp_missions.cpp.
References cgi, debugMissionCmds, and MIS_InitCallbacks().
Referenced by CP_InitStartup().
|
static |
Decides if the mission should be spawned from the ground (without UFO).
| [in] | mission | Pointer to the mission |
< Typical XVI average value for spreading mission from earth
Definition at line 1490 of file cp_missions.cpp.
References mission_t::category, cgi, CP_GetAverageXVIRate(), ERR_DROP, frand(), INTERESTCATEGORY_ALIENBASE, INTERESTCATEGORY_BASE_ATTACK, INTERESTCATEGORY_BUILDING, INTERESTCATEGORY_HARVEST, INTERESTCATEGORY_INTERCEPT, INTERESTCATEGORY_INTERCEPTBOMBING, INTERESTCATEGORY_MAX, INTERESTCATEGORY_NONE, INTERESTCATEGORY_RECON, INTERESTCATEGORY_RESCUE, INTERESTCATEGORY_SUBVERT, INTERESTCATEGORY_SUPPLY, INTERESTCATEGORY_TERROR_ATTACK, INTERESTCATEGORY_UFOCARRIER, and INTERESTCATEGORY_XVI.
Referenced by CP_MissionBegin().
| bool MIS_LoadXML | ( | xmlNode_t * | parent | ) |
Load callback for savegames in XML Format.
| [in] | parent | XML Node structure, where we get the information from |
Definition at line 2064 of file cp_missions.cpp.
References AB_GetByIDX(), mission_t::active, AIR_AircraftGetFromIDX(), mission_t::missionData_t::aircraft, mission_t::missionData_t::alienBase, B_GetBaseByIDX(), B_IsUnderAttack, mission_t::missionData_t::base, mission_t::category, ccs, cgi, mission_t::missionData_t::city, CITY_GetByPos(), CP_BasemissionIsSubvertingGovernmentMission(), mission_t::crashed, mission_t::data, mission_t::finalDate, mission_t::id, alienBase_t::idx, base_t::idx, mission_t::idx, mission_t::initialIndividualInterest, mission_t::initialOverallInterest, INS_GetByIDX(), mission_t::missionData_t::installation, INTERESTCATEGORY_ALIENBASE, INTERESTCATEGORY_BASE_ATTACK, INTERESTCATEGORY_BUILDING, INTERESTCATEGORY_INTERCEPT, INTERESTCATEGORY_RESCUE, INTERESTCATEGORY_SUPPLY, INTERESTCATEGORY_TERROR_ATTACK, LIST_Add(), mission_t::mapDef, MIS_Foreach, base_t::name, name, OBJZERO, mission_t::onGeoscape, mission_t::onlose, mission_t::onwin, mission_t::pos, mission_t::posAssigned, Q_strncpyz(), SAVE_INTERESTCAT_NAMESPACE, SAVE_MISSIONS, SAVE_MISSIONS_ACTIVE, SAVE_MISSIONS_ALIENBASEINDEX, SAVE_MISSIONS_BASEINDEX, SAVE_MISSIONS_CATEGORY, SAVE_MISSIONS_CRASHED, SAVE_MISSIONS_CRASHED_AIRCRAFT, SAVE_MISSIONS_FINALDATE, SAVE_MISSIONS_ID, SAVE_MISSIONS_INITIALINDIVIDUALINTEREST, SAVE_MISSIONS_INITIALOVERALLINTEREST, SAVE_MISSIONS_INSTALLATIONINDEX, SAVE_MISSIONS_MAPDEF_ID, SAVE_MISSIONS_MISSION, SAVE_MISSIONS_MISSION_IDX, SAVE_MISSIONS_ONGEOSCAPE, SAVE_MISSIONS_ONLOSE, SAVE_MISSIONS_ONWIN, SAVE_MISSIONS_POS, SAVE_MISSIONS_POSASSIGNED, SAVE_MISSIONS_STAGE, SAVE_MISSIONS_STARTDATE, SAVE_MISSIONSTAGE_NAMESPACE, saveInterestConstants, saveMissionConstants, mission_t::stage, STAGE_BASE_ATTACK, STAGE_BUILD_BASE, STAGE_INTERCEPT, STAGE_MISSION_GOTO, STAGE_TERROR_MISSION, mission_t::startDate, and xmlNode_t.
Referenced by SAV_Init().
| bool MIS_SaveXML | ( | xmlNode_t * | parent | ) |
Save callback for savegames in XML Format.
| [out] | parent | XML Node structure, where we write the information to |
Definition at line 1992 of file cp_missions.cpp.
References mission_t::active, mission_t::missionData_t::aircraft, mission_t::missionData_t::alienBase, mission_t::missionData_t::base, mission_t::category, cgi, mission_t::crashed, mission_t::data, mission_t::finalDate, DateTime::getDateAsDays(), DateTime::getTimeAsSeconds(), mapDef_t::id, mission_t::id, aircraft_t::idx, alienBase_t::idx, base_t::idx, installation_t::idx, mission_t::idx, mission_t::initialIndividualInterest, mission_t::initialOverallInterest, mission_t::missionData_t::installation, INTERESTCATEGORY_ALIENBASE, INTERESTCATEGORY_BASE_ATTACK, INTERESTCATEGORY_BUILDING, INTERESTCATEGORY_INTERCEPT, INTERESTCATEGORY_RESCUE, INTERESTCATEGORY_SUPPLY, mission_t::mapDef, MIS_Foreach, mission_t::onGeoscape, mission_t::onlose, mission_t::onwin, mission_t::pos, mission_t::posAssigned, SAVE_INTERESTCAT_NAMESPACE, SAVE_MISSIONS, SAVE_MISSIONS_ACTIVE, SAVE_MISSIONS_ALIENBASEINDEX, SAVE_MISSIONS_BASEINDEX, SAVE_MISSIONS_CATEGORY, SAVE_MISSIONS_CRASHED, SAVE_MISSIONS_CRASHED_AIRCRAFT, SAVE_MISSIONS_FINALDATE, SAVE_MISSIONS_ID, SAVE_MISSIONS_INITIALINDIVIDUALINTEREST, SAVE_MISSIONS_INITIALOVERALLINTEREST, SAVE_MISSIONS_INSTALLATIONINDEX, SAVE_MISSIONS_MAPDEF_ID, SAVE_MISSIONS_MISSION, SAVE_MISSIONS_MISSION_IDX, SAVE_MISSIONS_ONGEOSCAPE, SAVE_MISSIONS_ONLOSE, SAVE_MISSIONS_ONWIN, SAVE_MISSIONS_POS, SAVE_MISSIONS_POSASSIGNED, SAVE_MISSIONS_STAGE, SAVE_MISSIONS_STARTDATE, SAVE_MISSIONSTAGE_NAMESPACE, saveInterestConstants, saveMissionConstants, mission_t::stage, STAGE_BASE_ATTACK, STAGE_INTERCEPT, STAGE_MISSION_GOTO, mission_t::startDate, and xmlNode_t.
Referenced by SAV_Init().
Closing actions for missions-subsystem.
Definition at line 2235 of file cp_missions.cpp.
References ccs, cgi, debugMissionCmds, and MIS_ShutdownCallbacks().
Referenced by CP_Shutdown().
|
static |
Definition at line 2212 of file cp_missions.cpp.
Referenced by MIS_InitStartup(), and MIS_Shutdown().
|
static |
Definition at line 66 of file cp_missions.cpp.
Referenced by CP_CreateBattleParameters().
| const int MAX_POS_LOOP = 10 |
Maximum number of loops to choose a mission position (to avoid infinite loops)
Definition at line 62 of file cp_missions.cpp.
Referenced by CP_HarvestMissionGo(), CP_ReconMissionGroundGo(), and CP_TerrorMissionGo().
|
static |
Condition limits for crashed UFOs - used for disassemlies
Definition at line 65 of file cp_missions.cpp.
Referenced by CP_CreateBattleParameters().