Go to the source code of this file.
Data Structures | |
struct | mTile_s |
Stores the parsed data for a map tile. (See *.ump files). More... | |
struct | mTileSet_s |
struct | mAssembly_s |
Stores the parsed data of an assembly definition. See *.ump files. More... | |
struct | mToPlace_s |
Defines a tile to place. More... | |
struct | mPlaced_s |
Defines a placed tile. More... | |
struct | mapInfo_s |
Defines | |
#define | MAX_MAPASSEMBLIES 32 |
#define | MAX_TILETYPES 64 |
#define | MAX_TILESETS 16 |
#define | MAX_TILESETTILES 8 |
#define | MAX_TILESIZE 16 |
#define | MAX_FIXEDTILES 64 |
#define | MAX_RANDOM_MAP_WIDTH 32 |
#define | MAX_RANDOM_MAP_HEIGHT 32 |
Typedefs | |
typedef struct mTile_s | mTile_t |
Stores the parsed data for a map tile. (See *.ump files). | |
typedef struct mTileSet_s | mTileSet_t |
typedef struct mAssembly_s | mAssembly_t |
Stores the parsed data of an assembly definition. See *.ump files. | |
typedef struct mToPlace_s | mToPlace_t |
Defines a tile to place. | |
typedef struct mPlaced_s | mPlaced_t |
Defines a placed tile. | |
typedef struct mapInfo_s | mapInfo_t |
Functions | |
mapInfo_t * | SV_AssembleMap (const char *name, const char *assembly, char *asmMap, char *asmPos) |
Assembles a "random" map parses the *.ump files for assembling the "random" maps. |
Definition in file sv_rma.h.
#define MAX_FIXEDTILES 64 |
Definition at line 37 of file sv_rma.h.
Referenced by SV_ParseAssembly().
#define MAX_MAPASSEMBLIES 32 |
Definition at line 32 of file sv_rma.h.
Referenced by SV_ParseUMP().
#define MAX_RANDOM_MAP_HEIGHT 32 |
Definition at line 40 of file sv_rma.h.
Referenced by SV_AddMapTiles(), SV_AddTile(), SV_AssembleMap(), SV_ClearMap(), SV_ParseAssembly(), and SV_RemoveTile().
#define MAX_RANDOM_MAP_WIDTH 32 |
Definition at line 39 of file sv_rma.h.
Referenced by SV_AddMapTiles(), SV_AddTile(), SV_AssembleMap(), SV_ClearMap(), SV_FitTile(), SV_ParseAssembly(), and SV_RemoveTile().
#define MAX_TILESETS 16 |
Definition at line 34 of file sv_rma.h.
Referenced by SV_ParseUMP().
#define MAX_TILESIZE 16 |
Definition at line 36 of file sv_rma.h.
Referenced by SV_FitTile(), and SV_ParseMapTile().
#define MAX_TILETYPES 64 |
Definition at line 33 of file sv_rma.h.
Referenced by SV_ParseUMP().
typedef struct mAssembly_s mAssembly_t |
Stores the parsed data of an assembly definition. See *.ump files.
typedef struct mTileSet_s mTileSet_t |
typedef struct mToPlace_s mToPlace_t |
Defines a tile to place.
mapInfo_t* SV_AssembleMap | ( | const char * | name, | |
const char * | assembly, | |||
char * | asmMap, | |||
char * | asmPos | |||
) |
Assembles a "random" map parses the *.ump files for assembling the "random" maps.
[in] | name | The name of the map (ump) file to parse |
[in] | assembly | The random map assembly that should be used from the given rma |
[out] | asmMap | The output string of the random map assembly that contains all the map tiles that should be assembled. The order is the same as in the asmPos string. Each of the map tiles in this string has a corresponding entry in the pos string, too. |
[out] | asmPos | The pos string for the assembly. For each tile from the asmMap string this string contains three coordinates for shifting the given tile names. |
Definition at line 1195 of file sv_rma.c.
References mapInfo_s::basePath, Com_DPrintf(), Com_Error(), Com_Printf(), Com_sprintf(), DEBUG_SERVER, ERR_DROP, mAssembly_s::fT, mAssembly_s::fX, mAssembly_s::fY, mAssembly_s::height, i, mTile_s::id, mAssembly_s::id, cvar_s::integer, map, mapInfo_s::mAsm, mapInfo_s::mAssembly, MAX_RANDOM_MAP_HEIGHT, MAX_RANDOM_MAP_WIDTH, MAX_TILESTRINGS, MAX_TOKEN_CHARS, Mem_Alloc, Mem_Free, mapInfo_s::mPlaced, mapInfo_s::mTile, mapInfo_s::name, mapInfo_s::numAssemblies, mAssembly_s::numFixed, mapInfo_s::numPlaced, mapInfo_s::numTiles, Q_strcat(), Q_strncpyz(), qfalse, SV_AddMapTiles(), SV_AddTile(), SV_ClearMap(), sv_dumpmapassembly, SV_DumpPlaced(), SV_ParallelSearch(), SV_ParseUMP(), SV_PrepareTilesToPlace(), sv_threads, mPlaced_s::tile, va(), mAssembly_s::width, mPlaced_s::x, and mPlaced_s::y.
Referenced by SV_Map(), testAssembly(), testMassAssemblyParallel(), testMassAssemblySequential(), and testMassAssemblyTimeout().