UFO: Alien Invasion
Loading...
Searching...
No Matches
mission_t Struct Reference

mission definition More...

#include <cp_missions.h>

Collaboration diagram for mission_t:
Collaboration graph

Data Structures

union  missionData_t

Data Fields

int idx
char id [MAX_VAR]
mapDef_tmapDef
bool active
union mission_t::missionData_t data
interestCategory_t category
missionStage_t stage
int initialOverallInterest
int initialIndividualInterest
class DateTime startDate
class DateTime finalDate
vec2_t pos
aircraft_tufo
bool onGeoscape
bool crashed
char onwin [256]
char onlose [256]
bool posAssigned
missionResults_t missionResults

Detailed Description

mission definition

Note
A mission is different from a map: a mission is the whole set of actions aliens will carry. For example, coming with a UFO on earth, land, explore earth, and leave with UFO

Definition at line 86 of file cp_missions.h.

Field Documentation

◆ active

bool mission_t::active

◆ category

◆ crashed

◆ data

◆ finalDate

◆ id

◆ idx

int mission_t::idx

unique id of this mission

Definition at line 87 of file cp_missions.h.

Referenced by CP_CreateNewMission(), CP_MissionBegin(), CP_UFOCarrierMissionStart(), MIS_GetIdx(), MIS_LoadXML(), and MIS_SaveXML().

◆ initialIndividualInterest

int mission_t::initialIndividualInterest

The individual interest value (of type type) when this event has been created

Definition at line 101 of file cp_missions.h.

Referenced by CP_CreateNewMission(), MIS_LoadXML(), and MIS_SaveXML().

◆ initialOverallInterest

int mission_t::initialOverallInterest

◆ mapDef

◆ missionResults

missionResults_t mission_t::missionResults

Definition at line 113 of file cp_missions.h.

Referenced by AM_Go_f(), CP_MissionEnd(), and CP_StartSelectedMission().

◆ onGeoscape

bool mission_t::onGeoscape

Should the mission be displayed on geoscape

Definition at line 107 of file cp_missions.h.

Referenced by CP_MissionAddToGeoscape(), CP_MissionRemoveFromGeoscape(), MIS_LoadXML(), and MIS_SaveXML().

◆ onlose

char mission_t::onlose[256]

trigger command after you've lost a battle,

See also
CP_ExecuteMissionTrigger

Definition at line 111 of file cp_missions.h.

Referenced by CP_ExecuteMissionTrigger(), MIS_LoadXML(), and MIS_SaveXML().

◆ onwin

char mission_t::onwin[256]

trigger command after you've won a battle,

See also
CP_ExecuteMissionTrigger

Definition at line 110 of file cp_missions.h.

Referenced by CP_CreateBattleParameters(), CP_ExecuteMissionTrigger(), MIS_LoadXML(), and MIS_SaveXML().

◆ pos

◆ posAssigned

◆ stage

missionStage_t mission_t::stage

in which stage is this event?

Definition at line 99 of file cp_missions.h.

Referenced by AM_Go_f(), CP_BaseAttackGoToBase(), CP_BaseAttackMissionLeave(), CP_BaseAttackMissionNextStage(), CP_BaseAttackStartMission(), CP_BeginRescueMission(), CP_BuildBaseGoToBase(), CP_BuildBaseGovernmentLeave(), CP_BuildBaseMissionLeave(), CP_BuildBaseMissionNextStage(), CP_BuildBaseSetUpBase(), CP_BuildBaseSubvertGovernment(), CP_CheckMissionVisibleOnGeoscape(), CP_CheckNextStageDestination(), CP_CreateNewMission(), CP_HarvestMissionGo(), CP_HarvestMissionNextStage(), CP_HarvestMissionStart(), CP_InterceptAircraftMissionSet(), CP_InterceptAttackInstallation(), CP_InterceptGoToInstallation(), CP_InterceptMissionLeave(), CP_InterceptMissionSet(), CP_InterceptNextStage(), CP_LeaveRescueMission(), CP_MissionAddToGeoscape(), CP_MissionBegin(), CP_MissionEnd(), CP_MissionEndActions(), CP_MissionGetMessageLevel(), CP_MissionIsOver(), CP_MissionStageEnd(), CP_ReconMissionAerial(), CP_ReconMissionGround(), CP_ReconMissionGroundGo(), CP_ReconMissionLeave(), CP_ReconMissionNextStage(), CP_ReconMissionSelect(), CP_RescueNextStage(), CP_SpawnAlienBaseMission(), CP_SpawnRescueMission(), CP_SupplyGoToBase(), CP_SupplyMissionCreate(), CP_SupplyMissionLeave(), CP_SupplyMissionNextStage(), CP_SupplySetStayAtBase(), CP_TerrorMissionGo(), CP_TerrorMissionNextStage(), CP_TerrorMissionStart(), CP_UFOCarrierMissionStart(), CP_UFOCarrierNextStage(), CP_XVIMissionNextStage(), CP_XVIMissionStart(), MIS_GetName(), MIS_LoadXML(), MIS_SaveXML(), and TEST_F().

◆ startDate

class DateTime mission_t::startDate

Date when the event should start

Definition at line 102 of file cp_missions.h.

Referenced by CP_CreateNewMission(), MIS_LoadXML(), and MIS_SaveXML().

◆ ufo


The documentation for this struct was generated from the following file: