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

#include <q_shared.h>

Collaboration diagram for mapDef_t:
Collaboration graph

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

◆ aircraft

linkedList_t* mapDef_t::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().

◆ campaign

bool mapDef_t::campaign

◆ civTeam

char* mapDef_t::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().

◆ cultures

linkedList_t* mapDef_t::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().

◆ description

char* mapDef_t::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(), TEST_F(), and UI_ListMaps_f().

◆ gameTypes

linkedList_t* mapDef_t::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().

◆ hurtAliens

bool mapDef_t::hurtAliens

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

Definition at line 484 of file q_shared.h.

◆ hwclass

int mapDef_t::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().

◆ id

◆ mapTheme

◆ maxAliens

◆ missionBriefing

char* mapDef_t::missionBriefing

the mission briefing description

Definition at line 469 of file q_shared.h.

Referenced by GAME_CP_InitMissionBriefing(), and GAME_SK_InitMissionBriefing().

◆ multiplayer

◆ onlose

char* mapDef_t::onlose

trigger command after you've lost a battle

Definition at line 498 of file q_shared.h.

Referenced by CP_ExecuteMissionTrigger().

◆ onwin

char* mapDef_t::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().

◆ params

linkedList_t* mapDef_t::params

◆ populations

linkedList_t* mapDef_t::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().

◆ singleplayer

bool mapDef_t::singleplayer

is this map available in singleplayer games?

Definition at line 481 of file q_shared.h.

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

◆ size

char* mapDef_t::size

small, medium, big

Definition at line 470 of file q_shared.h.

◆ storyRelated

bool mapDef_t::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().

◆ teams

int mapDef_t::teams

multiplayer teams

Definition at line 475 of file q_shared.h.

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

◆ terrains

linkedList_t* mapDef_t::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().

◆ timesAlreadyUsed

int mapDef_t::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().

◆ ufos

◆ victoryBonusPerAlien

float mapDef_t::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().

◆ victoryCondition

char* mapDef_t::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: