UFO: Alien Invasion
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
mission_s Struct Reference

mission definition More...

#include <cp_missions.h>

Data Structures

union  missionData_t
 

Data Fields

int idx
 
char id [MAX_VAR]
 
mapDef_tmapDef
 
bool active
 
union mission_s::missionData_t data
 
interestCategory_t category
 
missionStage_t stage
 
int initialOverallInterest
 
int initialIndividualInterest
 
date_t startDate
 
date_t 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 85 of file cp_missions.h.

Field Documentation

int mission_s::initialIndividualInterest

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

Definition at line 100 of file cp_missions.h.

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

int mission_s::initialOverallInterest

The overall interest value when this event has been created

Definition at line 99 of file cp_missions.h.

Referenced by CP_BasemissionIsSubvertingGovernmentMission(), CP_CreateNewMission(), CP_IsAlienEquipmentSelectable(), CP_SetAlienTeamByInterest(), CP_SetMissionName(), MIS_LoadXML(), and MIS_SaveXML().

missionResults_t mission_s::missionResults
bool mission_s::onGeoscape

Should the mission be displayed on geoscape

Definition at line 106 of file cp_missions.h.

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

char mission_s::onlose[256]

trigger command after you've lost a battle,

See also
CP_ExecuteMissionTrigger

Definition at line 110 of file cp_missions.h.

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

char mission_s::onwin[256]

trigger command after you've won a battle,

See also
CP_ExecuteMissionTrigger

Definition at line 109 of file cp_missions.h.

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

missionStage_t mission_s::stage

in which stage is this event?

Definition at line 98 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_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_UFOProceedMission(), CP_XVIMissionNextStage(), CP_XVIMissionStart(), MIS_GetName(), MIS_LoadXML(), MIS_SaveXML(), TEST_F(), UFO_CampaignRunUFOs(), and UFO_SearchAircraftTarget().

date_t mission_s::startDate

Date when the event should start

Definition at line 101 of file cp_missions.h.

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


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