mission definition More...
#include <cp_campaign.h>
Data Fields | |
int | idx |
char | id [MAX_VAR] |
mapDef_t * | mapDef |
qboolean | active |
void * | data |
char | location [MAX_VAR] |
interestCategory_t | category |
missionStage_t | stage |
int | initialOverallInterest |
int | initialIndividualInterest |
date_t | startDate |
date_t | finalDate |
vec2_t | pos |
aircraft_t * | ufo |
qboolean | onGeoscape |
qboolean | crashed |
char | onwin [MAX_VAR] |
char | onlose [MAX_VAR] |
qboolean | posAssigned |
mission definition
Definition at line 234 of file cp_campaign.h.
aircraft at place?
Definition at line 238 of file cp_campaign.h.
Referenced by AIR_Move(), AIR_SendAircraftToMission(), CL_GameAutoGo(), CP_BaseAttackStartMission(), CP_LoadMissionsXML(), CP_SaveMissionsXML(), CP_StartSelectedMission(), and MAP_DrawMapOneMission().
The category of the event
Definition at line 241 of file cp_campaign.h.
Referenced by BDEF_AutoTarget(), CP_CheckBaseAttacks_f(), CP_CheckMissionVisibleOnGeoscape(), CP_ChooseMap(), CP_CreateNewMission(), CP_GetWinProbabilty(), CP_LoadMissionsXML(), CP_MissionChooseUFO(), CP_MissionEndActions(), CP_MissionGetMessage(), CP_MissionIsOver(), CP_MissionNotifyBaseDestroyed(), CP_MissionNotifyInstallationDestroyed(), CP_MissionRemoveFromGeoscape(), CP_MissionStageEnd(), CP_MissionToTypeString(), CP_SaveMissionsXML(), CP_SetAlienTeamByInterest(), CP_SetMissionName(), CP_StartMissionMap(), CP_TerrorInCity(), CP_UFOProceedMission(), and MAP_GetMissionModel().
is UFO crashed ? (only used if mission is spawned from a UFO
Definition at line 251 of file cp_campaign.h.
Referenced by CP_CheckMissionVisibleOnGeoscape(), CP_ChooseMap(), CP_CreateBattleParameters(), CP_LoadMissionsXML(), CP_MapIsSelectable(), CP_MissionGetMessageLevel(), CP_MissionStageEnd(), CP_SaveMissionsXML(), CP_SpawnCrashSiteMission(), and MAP_GetMissionModel().
void* mission_s::data |
may be related to mission type (like pointer to base attacked, or to alien base)
Definition at line 239 of file cp_campaign.h.
Referenced by BDEF_AutoTarget(), CL_GameAutoGo(), CP_BaseAttackGoToBase(), CP_BaseAttackMissionDestroyBase(), CP_BaseAttackMissionIsFailure(), CP_BaseAttackStartMission(), CP_BuildBaseMissionBaseDestroyed(), CP_BuildBaseMissionIsSuccess(), CP_BuildBaseMissionLeave(), CP_BuildBaseSetUpBase(), CP_CheckBaseAttacks_f(), CP_InterceptAttackInstallation(), CP_InterceptGoToInstallation(), CP_InterceptMissionLeave(), CP_InterceptNextStage(), CP_LoadMissionsXML(), CP_MissionEnd(), CP_MissionEndActions(), CP_MissionNotifyBaseDestroyed(), CP_MissionNotifyInstallationDestroyed(), CP_SaveMissionsXML(), CP_SpawnAlienBaseMission(), CP_SpawnRescueMission(), CP_StartMissionMap(), CP_SupplyGoToBase(), CP_SupplyMissionIsSuccess(), CP_SupplyMissionLeave(), CP_SupplySetStayAtBase(), CP_UFOProceedMission(), MAP_GetGeoscapeAngle(), and UFO_CampaignRunUFOs().
Date when the event should finish (e.g. for aerial recon) if finaleDate.day == 0, then delay is not a limitating factor for next stage
Definition at line 246 of file cp_campaign.h.
Referenced by CP_BaseAttackGoToBase(), CP_BaseAttackMissionLeave(), CP_BuildBaseSetUpBase(), CP_BuildBaseSubvertGovernment(), CP_CheckMissionEnd(), CP_CheckMissionLimitedInTime(), CP_CreateNewMission(), CP_HarvestMissionGo(), CP_HarvestMissionStart(), CP_InterceptAircraftMissionSet(), CP_InterceptAttackInstallation(), CP_InterceptNextStage(), CP_LoadMissionsXML(), CP_MissionBegin(), CP_MissionDisableTimeLimit(), CP_ReconMissionAerial(), CP_ReconMissionGround(), CP_ReconMissionGroundGo(), CP_ReconMissionLeave(), CP_SaveMissionsXML(), CP_SpawnCrashSiteMission(), CP_SpawnRescueMission(), CP_SupplySetStayAtBase(), CP_TerrorMissionGo(), CP_TerrorMissionStart(), and CP_XVIMissionStart().
char mission_s::id[MAX_VAR] |
script id
Definition at line 236 of file cp_campaign.h.
Referenced by AIR_SaveAircraftXML(), CL_HandleNationData(), CP_BaseAttackStartMission(), CP_GetMissionByIDSilent(), CP_LoadMissionsXML(), CP_MissionRemove(), CP_MissionStageEnd(), CP_SaveMissionsXML(), CP_SetAlienEquipmentByInterest(), CP_SetAlienTeamByInterest(), CP_SetMissionName(), CP_StartMissionMap(), and MAP_GetMissionModel().
int mission_s::idx |
unique id of this mission
Definition at line 235 of file cp_campaign.h.
Referenced by CP_CreateNewMission(), CP_LoadMissionsXML(), CP_MissionBegin(), CP_SaveMissionsXML(), MAP_GetIDXByMission(), MAP_GetMissionByIDX(), and MAP_UpdateGeoscapeDock().
The individual interest value (of type type) when this event has been created
Definition at line 244 of file cp_campaign.h.
Referenced by CP_CreateNewMission(), CP_LoadMissionsXML(), and CP_SaveMissionsXML().
The overall interest value when this event has been created
Definition at line 243 of file cp_campaign.h.
Referenced by CP_BasemissionIsSubvertingGovernmentMission(), CP_CreateNewMission(), CP_IsAlienEquipmentSelectable(), CP_LoadMissionsXML(), CP_SaveMissionsXML(), CP_SetAlienTeamByInterest(), and CP_SetMissionName().
char mission_s::location[MAX_VAR] |
The name of the ground mission that will appear on geoscape
Definition at line 240 of file cp_campaign.h.
Referenced by CL_DisplayPopupAircraft(), CP_BaseAttackGoToBase(), CP_HarvestMissionGo(), CP_InterceptGoToInstallation(), CP_LoadMissionsXML(), CP_MissionGetMessage(), CP_ReconMissionGroundGo(), CP_SaveMissionsXML(), CP_SpawnAlienBaseMission(), CP_SpawnCrashSiteMission(), CP_SpawnRescueMission(), CP_TerrorMissionGo(), MAP_DrawMapOneMission(), MAP_GetMissionText(), MAP_GetShortMissionText(), MAP_MapClick(), and MAP_UpdateGeoscapeDock().
mapDef used for this mission
Definition at line 237 of file cp_campaign.h.
Referenced by CL_GameAutoGo(), CP_BaseAttackGoToBase(), CP_ChooseMap(), CP_CreateAlienTeam(), CP_CreateBattleParameters(), CP_ExecuteMissionTrigger(), CP_HarvestMissionGo(), CP_LoadMissionsXML(), CP_ReconMissionGroundGo(), CP_SaveMissionsXML(), CP_SetMissionVars(), CP_SpawnAlienBaseMission(), CP_SpawnCrashSiteMission(), CP_SpawnRescueMission(), CP_StartMissionMap(), GAME_CP_MissionAutoCheck_f(), MAP_GetMissionModel(), MAP_GetMissionText(), and MAP_GetShortMissionText().
Should the mission be displayed on geoscape
Definition at line 250 of file cp_campaign.h.
Referenced by CL_DisplayPopupAircraft(), CP_CheckNewMissionDetectedOnGeoscape(), CP_CountMissionOnGeoscape(), CP_LoadMissionsXML(), CP_MissionAddToGeoscape(), CP_MissionRemoveFromGeoscape(), CP_SaveMissionsXML(), CP_UpdateMissionVisibleOnGeoscape(), MAP_DrawMapMarkers(), MAP_GetGeoscapeAngle(), MAP_MapClick(), and MAP_UpdateGeoscapeDock().
char mission_s::onlose[MAX_VAR] |
trigger command after you've lost a battle,
Definition at line 254 of file cp_campaign.h.
Referenced by CP_ExecuteMissionTrigger(), CP_LoadMissionsXML(), and CP_SaveMissionsXML().
char mission_s::onwin[MAX_VAR] |
trigger command after you've won a battle,
Definition at line 253 of file cp_campaign.h.
Referenced by CP_CreateBattleParameters(), CP_ExecuteMissionTrigger(), CP_LoadMissionsXML(), and CP_SaveMissionsXML().
Position of the mission
Definition at line 248 of file cp_campaign.h.
Referenced by AIR_SendAircraftToMission(), CL_DisplayPopupAircraft(), CL_DisplayPopupInterceptMission(), CP_BaseAttackGoToBase(), CP_BaseAttackStartMission(), CP_BuildBaseGoToBase(), CP_BuildBaseGovernmentLeave(), CP_BuildBaseSetUpBase(), CP_ChangeNationHappiness_f(), CP_CheckMissionVisibleOnGeoscape(), CP_CreateBattleParameters(), CP_CreateCivilianTeam(), CP_HarvestMissionGo(), CP_InterceptAttackInstallation(), CP_InterceptGoToInstallation(), CP_InterceptMissionLeave(), CP_LoadMissionsXML(), CP_MissionAddToGeoscape(), CP_ReconMissionGroundGo(), CP_SaveMissionsXML(), CP_SpawnAlienBaseMission(), CP_SpawnCrashSiteMission(), CP_SpawnRescueMission(), CP_SpreadXVI(), CP_StartMissionMap(), CP_SupplyGoToBase(), CP_TerrorInCity(), CP_TerrorMissionGo(), CP_UFOProceedMission(), MAP_DrawMapOneMission(), MAP_GetGeoscapeAngle(), MAP_GetMissionAngle(), MAP_MapClick(), NAT_UpdateHappinessForAllNations(), and UFO_CampaignRunUFOs().
is the position of this mission already set?
Definition at line 255 of file cp_campaign.h.
Referenced by CP_BaseAttackGoToBase(), CP_CheckMissionVisibleOnGeoscape(), CP_CreateAlienTeam(), CP_CreateBattleParameters(), CP_CreateCivilianTeam(), CP_HarvestMissionGo(), CP_InterceptGoToInstallation(), CP_LoadMissionsXML(), CP_ReconMissionGround(), CP_ReconMissionGroundGo(), CP_SaveMissionsXML(), CP_SpawnAlienBaseMission(), CP_SpawnCrashSiteMission(), CP_SpawnRescueMission(), and CP_TerrorMissionGo().
in which stage is this event?
Definition at line 242 of file cp_campaign.h.
Referenced by CL_DisplayPopupAircraft(), CL_GameAutoGo(), CP_BaseAttackGoToBase(), CP_BaseAttackMissionLeave(), CP_BaseAttackMissionNextStage(), CP_BaseAttackStartMission(), CP_BuildBaseGoToBase(), CP_BuildBaseGovernmentLeave(), CP_BuildBaseMissionLeave(), CP_BuildBaseMissionNextStage(), CP_BuildBaseSetUpBase(), CP_BuildBaseSubvertGovernment(), CP_CheckBaseAttacks_f(), CP_CheckMissionVisibleOnGeoscape(), CP_CheckNextStageDestination(), CP_CountMission(), CP_CountMissionActive(), CP_CountMissionOnGeoscape(), CP_CreateNewMission(), CP_GetWinProbabilty(), CP_HarvestMissionGo(), CP_HarvestMissionNextStage(), CP_HarvestMissionStart(), CP_InterceptAircraftMissionSet(), CP_InterceptAttackInstallation(), CP_InterceptGoToInstallation(), CP_InterceptMissionLeave(), CP_InterceptNextStage(), CP_LoadMissionsXML(), CP_MissionAddToGeoscape(), CP_MissionBegin(), CP_MissionEnd(), CP_MissionEndActions(), CP_MissionGetMessageLevel(), CP_MissionIsOver(), CP_MissionStageEnd(), CP_MissionToTypeString(), CP_ReconMissionAerial(), CP_ReconMissionGround(), CP_ReconMissionGroundGo(), CP_ReconMissionLeave(), CP_ReconMissionNextStage(), CP_ReconMissionSelect(), CP_SaveMissionsXML(), CP_SpawnAlienBaseMission(), CP_SpawnRescueMission(), CP_SpreadXVI(), CP_SupplyGoToBase(), CP_SupplyMissionCreate(), CP_SupplyMissionLeave(), CP_SupplyMissionNextStage(), CP_SupplySetStayAtBase(), CP_TerrorInCity(), CP_TerrorMissionGo(), CP_TerrorMissionNextStage(), CP_TerrorMissionStart(), CP_UFOProceedMission(), CP_XVIMissionNextStage(), CP_XVIMissionStart(), MAP_GetGeoscapeAngle(), MAP_MapClick(), NAT_UpdateHappinessForAllNations(), UFO_CampaignRunUFOs(), and UFO_SearchAircraftTarget().
Date when the event should start
Definition at line 245 of file cp_campaign.h.
Referenced by CP_CreateNewMission(), CP_LoadMissionsXML(), and CP_SaveMissionsXML().
UFO on geoscape fulfilling the mission (may be NULL)
Definition at line 249 of file cp_campaign.h.
Referenced by CP_BaseAttackGoToBase(), CP_BaseAttackMissionLeave(), CP_BaseAttackStartMission(), CP_BuildBaseGoToBase(), CP_BuildBaseGovernmentLeave(), CP_BuildBaseMissionLeave(), CP_BuildBaseSetUpBase(), CP_BuildBaseSubvertGovernment(), CP_CheckMissionVisibleOnGeoscape(), CP_CheckNewMissionDetectedOnGeoscape(), CP_ChooseMap(), CP_ChooseNation(), CP_CreateAlienTeam(), CP_CreateBattleParameters(), CP_CreateNewMission(), CP_HarvestMissionGo(), CP_HarvestMissionStart(), CP_InterceptAttackInstallation(), CP_InterceptGoToInstallation(), CP_InterceptMissionLeave(), CP_InterceptMissionSet(), CP_InterceptNextStage(), CP_LoadMissionsXML(), CP_MapIsSelectable(), CP_MissionAddToGeoscape(), CP_MissionBegin(), CP_MissionRemove(), CP_ReconMissionAerial(), CP_ReconMissionChoose(), CP_ReconMissionGround(), CP_ReconMissionGroundGo(), CP_ReconMissionLeave(), CP_SaveMissionsXML(), CP_SpawnRescueMission(), CP_SupplyGoToBase(), CP_SupplyMissionCreate(), CP_SupplyMissionLeave(), CP_SupplySetStayAtBase(), CP_TerrorMissionGo(), CP_TerrorMissionStart(), CP_UFORemoveFromGeoscape(), and CP_XVIMissionStart().