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

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. More...
 
mToPlace_t mToPlace [MAX_TILETYPES]
 Stores the Tiles to Place in the map. More...
 
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

const char* MapInfo::getCurrentAssemblyTitle ( ) const
inline

Definition at line 193 of file sv_rma.cpp.

References asmIdx, and Assembly::title.

Referenced by SV_AssembleMapAndTitle().

const char* MapInfo::getName ( ) const
inline

Definition at line 190 of file sv_rma.cpp.

References name.

Referenced by SV_AddMapTiles(), and SV_AssembleMap_().

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

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().

Assembly MapInfo::assemblies[MAX_MAPASSEMBLIES]

A list of parsed assembly definitions.

Definition at line 164 of file sv_rma.cpp.

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

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().

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().

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().

unsigned long MapInfo::lineFlags

Definition at line 175 of file sv_rma.cpp.

Referenced by SV_AddMissingTiles_r(), and SV_ParseUMP().

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().

Tile MapInfo::mTile[MAX_TILETYPES]
char MapInfo::name[MAX_VAR]
private

Definition at line 155 of file sv_rma.cpp.

Referenced by getName().

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().

int MapInfo::numPlaced
int MapInfo::numTiles
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().

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().

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().

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: