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

#include <q_shared.h>

Data Fields

char * id
 
char * mapTheme
 
linkedList_tparams
 
char * description
 
char * victoryCondition
 
float victoryBonusPerAlien
 
char * missionBriefing
 
char * size
 
char * civTeam
 
bool multiplayer
 
int teams
 
linkedList_tgameTypes
 
bool campaign
 
bool singleplayer
 
int hwclass
 
int maxAliens
 
bool hurtAliens
 
linkedList_tterrains
 
linkedList_tpopulations
 
linkedList_tcultures
 
bool storyRelated
 
int timesAlreadyUsed
 
linkedList_tufos
 
linkedList_taircraft
 
char * onwin
 
char * onlose
 

Detailed Description

Definition at line 461 of file q_shared.h.

Field Documentation

linkedList_t* mapDef_s::aircraft

Type of allowed aircraft on the map

Definition at line 492 of file q_shared.h.

Referenced by CP_CreateBattleParameters(), GAME_MP_StartServer_f(), GAME_SK_MapInfo(), TEST_F(), and GameTest::testCountSpawnpointsForMapWithAssembly().

bool mapDef_s::campaign

available in campaign mode?

Definition at line 480 of file q_shared.h.

Referenced by Com_ParseMapDefinition(), TEST_F(), and GameTest::testCountSpawnpointsForMapWithAssemblyAndAircraftAndUfo().

char* mapDef_s::civTeam

the civilian team to use for this map - this can also be nullptr

Definition at line 471 of file q_shared.h.

Referenced by CP_CreateCivilianTeam(), GAME_SK_SetMissionParameters(), and TEST_F().

linkedList_t* mapDef_s::cultures

culture strings this map is useable for

Definition at line 488 of file q_shared.h.

Referenced by CP_HarvestMissionGo(), CP_MapIsSelectable(), CP_ReconMissionGroundGo(), NAT_ScriptSanityCheck(), and TEST_F().

char* mapDef_s::description

the description to show in the menus

Definition at line 466 of file q_shared.h.

Referenced by Com_ParseMapDefinition(), GAME_CP_InitMissionBriefing(), GAME_SK_InitMissionBriefing(), GEO_GetMissionText(), and TEST_F().

linkedList_t* mapDef_s::gameTypes

gametype strings this map is useable for

Definition at line 476 of file q_shared.h.

Referenced by GAME_MP_MapInfo(), GAME_MP_UpdateGametype_f(), TEST_F(), and GameTest::testCountSpawnpointsForMapInMultiplayerMode().

bool mapDef_s::hurtAliens

hurt the aliens on spawning them - e.g. for ufocrash missions

Definition at line 484 of file q_shared.h.

int mapDef_s::hwclass

skip this map everywhere if hwclass is higher than that of the pc

Definition at line 482 of file q_shared.h.

Referenced by Com_ParseMapDefinition().

char* mapDef_s::missionBriefing

the mission briefing description

Definition at line 469 of file q_shared.h.

Referenced by GAME_CP_InitMissionBriefing(), and GAME_SK_InitMissionBriefing().

char* mapDef_s::onlose

trigger command after you've lost a battle

Definition at line 498 of file q_shared.h.

Referenced by CP_ExecuteMissionTrigger().

char* mapDef_s::onwin
Note
Don't end with ; - the trigger commands get the base index as parameter - see CP_ExecuteMissionTrigger - If you don't need the base index in your trigger command, you can seperate more commands with ; of course trigger command after you've won a battle

Definition at line 497 of file q_shared.h.

Referenced by CP_ExecuteMissionTrigger().

linkedList_t* mapDef_s::params

in case of ump file, the assembly to use

Definition at line 465 of file q_shared.h.

Referenced by BATTLE_Start(), Com_ParseMapDefinition(), GAME_MP_StartServer_f(), GAME_SK_Start_f(), TEST_F(), GameTest::testCountSpawnpointsForMap(), and UI_MapInfo().

linkedList_t* mapDef_s::populations

population strings this map is useable for

Definition at line 487 of file q_shared.h.

Referenced by CP_HarvestMissionGo(), CP_MapIsSelectable(), CP_ReconMissionGroundGo(), NAT_ScriptSanityCheck(), and TEST_F().

bool mapDef_s::singleplayer

is this map available in singleplayer games?

Definition at line 481 of file q_shared.h.

Referenced by Com_ParseMapDefinition(), GAME_SK_MapInfo(), TEST_F(), GameTest::testCountSpawnpointsForMapWithAssemblyAndAircraftAndUfo(), and UI_RequestMapList_f().

char* mapDef_s::size

small, medium, big

Definition at line 470 of file q_shared.h.

bool mapDef_s::storyRelated

Is this a mission story related?

Definition at line 489 of file q_shared.h.

Referenced by AM_Check_f(), AM_Go(), AM_Go_f(), CP_MapIsSelectable(), MIS_GetModel(), and NAT_ScriptSanityCheck().

int mapDef_s::teams

multiplayer teams

Definition at line 475 of file q_shared.h.

Referenced by GAME_MP_StartServer_f(), and GameTest::testCountSpawnpointsForMapInMultiplayerMode().

linkedList_t* mapDef_s::terrains

terrain strings this map is useable for

Definition at line 486 of file q_shared.h.

Referenced by CP_HarvestMissionGo(), CP_MapIsSelectable(), CP_ReconMissionGroundGo(), NAT_ScriptSanityCheck(), and TEST_F().

int mapDef_s::timesAlreadyUsed

Number of times the map has already been used

Definition at line 490 of file q_shared.h.

Referenced by CP_ChooseMap(), CP_LoadMapDefStatXML(), CP_ResetCampaignData(), CP_SaveMapDefStatXML(), and TEST_F().

float mapDef_s::victoryBonusPerAlien

for missions other than "kill all aliens", the bonus value to use for each alien killed and stunned

Definition at line 468 of file q_shared.h.

Referenced by CP_HandleNationData().

char* mapDef_s::victoryCondition

the mission briefing victory condition

Definition at line 467 of file q_shared.h.

Referenced by GAME_CP_InitMissionBriefing(), and GAME_SK_InitMissionBriefing().


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