UFO: Alien Invasion
Loading...
Searching...
No Matches
MapInfo Class Reference
Collaboration diagram for MapInfo:
Collaboration graph

Public Member Functions

const AssemblygetCurrentAssembly () const
void setName (const char *mapTheme)
const char * getName () const
const char * getCurrentAssemblyTitle () const

Data Fields

unsigned long curMap [MAX_RANDOM_MAP_HEIGHT][MAX_RANDOM_MAP_WIDTH]
 Stores the alternatives information for the assembled map.
mToPlace_t mToPlace [MAX_TILETYPES]
 Stores the Tiles to Place in the map.
int numToPlace
Assembly assemblies [MAX_MAPASSEMBLIES]
int numAssemblies
mPlaced_t mPlaced [MAX_MAPTILES]
int numPlaced
TileSet tileSets [MAX_TILESETS]
int numTileSets
Tile mTile [MAX_TILETYPES]
int numTiles
unsigned long lineFlags
char basePath [MAX_QPATH]
char inheritBasePath [MAX_QPATH]
int asmIdx
int retryCnt

Private Attributes

char name [MAX_VAR]

Detailed Description

Definition at line 153 of file sv_rma.cpp.

Member Function Documentation

◆ getCurrentAssembly()

◆ getCurrentAssemblyTitle()

const char * MapInfo::getCurrentAssemblyTitle ( ) const
inline

Definition at line 193 of file sv_rma.cpp.

References asmIdx, and assemblies.

Referenced by SV_AssembleMapAndTitle().

◆ getName()

const char * MapInfo::getName ( ) const
inline

Definition at line 190 of file sv_rma.cpp.

References name.

Referenced by SV_AddMapTiles(), and SV_AssembleMap_().

◆ setName()

void MapInfo::setName ( const char * mapTheme)
inline

Definition at line 187 of file sv_rma.cpp.

References Q_strncpyz().

Referenced by SV_AssembleMap_().

Field Documentation

◆ asmIdx

int MapInfo::asmIdx

the index of the selected assembly

Definition at line 180 of file sv_rma.cpp.

Referenced by getCurrentAssembly(), getCurrentAssemblyTitle(), SV_AssembleMap_(), and SV_PrintAssemblyStats().

◆ assemblies

Assembly MapInfo::assemblies[MAX_MAPASSEMBLIES]

A list of parsed assembly definitions.

Definition at line 164 of file sv_rma.cpp.

Referenced by getCurrentAssembly(), getCurrentAssemblyTitle(), SV_AssembleMap_(), SV_ParseUMP(), and SV_PrintAssemblyStats().

◆ basePath

char MapInfo::basePath[MAX_QPATH]

the combined bit values of the tiles that must form a line, ie. river, street etc. the base path of the main rma

Definition at line 177 of file sv_rma.cpp.

Referenced by SV_DoMapAssemble(), and SV_ParseUMP().

◆ curMap

unsigned long MapInfo::curMap[MAX_RANDOM_MAP_HEIGHT][MAX_RANDOM_MAP_WIDTH]

Stores the alternatives information for the assembled map.

Definition at line 158 of file sv_rma.cpp.

Referenced by SV_AddMissingTiles_r(), SV_AddTile(), SV_ClearMap(), SV_FitTile(), SV_GapListBuild(), SV_RemoveTile(), SV_RmaPrintMap(), and SV_TestFilled().

◆ inheritBasePath

char MapInfo::inheritBasePath[MAX_QPATH]

only used during parsing, don't rely on any reasonable data after the parsing stage

Definition at line 178 of file sv_rma.cpp.

Referenced by SV_ParseMapTile(), SV_ParseMapTileSet(), and SV_ParseUMP().

◆ lineFlags

unsigned long MapInfo::lineFlags

Definition at line 175 of file sv_rma.cpp.

Referenced by SV_AddMissingTiles_r(), and SV_ParseUMP().

◆ mPlaced

mPlaced_t MapInfo::mPlaced[MAX_MAPTILES]

Holds all tiles that have been placed on the current map.

Definition at line 167 of file sv_rma.cpp.

Referenced by SV_AddMapTiles(), SV_AddTile(), SV_BuildMapStrings(), SV_DumpPlaced(), SV_RemoveTile(), and SV_RmaPrintMap().

◆ mTile

Tile MapInfo::mTile[MAX_TILETYPES]

◆ mToPlace

◆ name

char MapInfo::name[MAX_VAR]
private

Definition at line 155 of file sv_rma.cpp.

Referenced by getName().

◆ numAssemblies

int MapInfo::numAssemblies

The number of assemblies in mAssembly.

Definition at line 165 of file sv_rma.cpp.

Referenced by SV_AssembleMap_(), SV_ParseUMP(), and SV_PrintAssemblyStats().

◆ numPlaced

int MapInfo::numPlaced

◆ numTiles

int MapInfo::numTiles

◆ numTileSets

int MapInfo::numTileSets

Length of the tileSets list

Definition at line 171 of file sv_rma.cpp.

Referenced by SV_GetMapTileSet(), SV_ParseMapTileSet(), and SV_ParseUMP().

◆ numToPlace

int MapInfo::numToPlace

the size of the to place list

Definition at line 162 of file sv_rma.cpp.

Referenced by SV_AddMapTiles(), SV_AddMissingTiles(), SV_DoMapAssemble(), SV_PrepareTilesToPlace(), and SV_PrintAssemblyStats().

◆ retryCnt

int MapInfo::retryCnt

amount of retries in case the assembly didn't assemble and we are using the defined seeds

Definition at line 182 of file sv_rma.cpp.

Referenced by SV_AddMapTiles(), SV_AssemblyThread(), and SV_DoMapAssemble().

◆ tileSets

TileSet MapInfo::tileSets[MAX_TILESETS]

A list of parsed map-tilesets.

Definition at line 170 of file sv_rma.cpp.

Referenced by SV_GetMapTileSet(), and SV_ParseMapTileSet().


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