Stores the parsed data of an assembly definition. See *.ump files. More...
#include <sv_rma.h>
Data Fields | |
char | id [MAX_VAR] |
char | title [MAX_VAR] |
byte | min [MAX_TILETYPES] |
byte | max [MAX_TILETYPES] |
byte | fT [MAX_FIXEDTILES] |
byte | fX [MAX_FIXEDTILES] |
byte | fY [MAX_FIXEDTILES] |
int | numFixed |
int | width |
int | height |
int | size |
int | dx |
int | dy |
Stores the parsed data of an assembly definition. See *.ump files.
Definition at line 60 of file sv_rma.h.
int mAssembly_s::dx |
Definition at line 74 of file sv_rma.h.
Referenced by SV_AddMapTiles(), SV_AddTile(), SV_FitTile(), SV_ParseAssembly(), and SV_PickRandomTile().
int mAssembly_s::dy |
The grid steps of the assembly. (grid "<dx> <dx>") This can speed up the assembly of a map if you e.g. only have tiles of the size 2x2 you can greatly improve the performance if you also set the grid parameter to "2 2" - this will only check every 2 random map units for a suitable maptile.
Definition at line 74 of file sv_rma.h.
Referenced by SV_AddMapTiles(), SV_AddTile(), SV_FitTile(), SV_ParseAssembly(), and SV_PickRandomTile().
byte mAssembly_s::fT[MAX_FIXEDTILES] |
Index of used (fix) tile in mTile[] array
Definition at line 65 of file sv_rma.h.
Referenced by SV_AssembleMap(), and SV_ParseAssembly().
byte mAssembly_s::fX[MAX_FIXEDTILES] |
x position of the used (fix) tile in fT
Definition at line 66 of file sv_rma.h.
Referenced by SV_AssembleMap(), and SV_ParseAssembly().
byte mAssembly_s::fY[MAX_FIXEDTILES] |
y position of the used (fix) tile in fT
Definition at line 67 of file sv_rma.h.
Referenced by SV_AssembleMap(), and SV_ParseAssembly().
The width and height of the assembly. (size "<w> <h>"). This is the maximum size of whole map that is built from all the tiles in the assembly. So if there is a single tile that is used in the assembly and that has a greater size than the one given in the assembly then this must fail.
Definition at line 69 of file sv_rma.h.
Referenced by SV_AddMissingTiles(), SV_AssembleMap(), SV_CalcRating(), SV_DumpPlaced(), SV_DumpRating(), SV_FitTile(), SV_ParseAssembly(), and SV_TestFilled().
char mAssembly_s::id[MAX_VAR] |
The id (string) of the assembly as defined in the ump file (next to "assembly").
Definition at line 61 of file sv_rma.h.
Referenced by SV_AddMapTiles(), SV_AssembleMap(), SV_GetCvarToken(), SV_GetTileFromTileSet(), and SV_ParseAssembly().
byte mAssembly_s::max[MAX_TILETYPES] |
Maximum tile number for each used tile-type.
Definition at line 64 of file sv_rma.h.
Referenced by SV_ParseAssembly(), and SV_PrepareTilesToPlace().
byte mAssembly_s::min[MAX_TILETYPES] |
Minimum tile number for each used tile-type.
Definition at line 63 of file sv_rma.h.
Referenced by SV_ParseAssembly(), and SV_PrepareTilesToPlace().
Number of fixed tiles. Counts entries of fX, fY and fT
Definition at line 68 of file sv_rma.h.
Referenced by SV_AssembleMap(), and SV_ParseAssembly().
the result of (width * height), memoized
Definition at line 73 of file sv_rma.h.
Referenced by SV_AddMapTiles(), SV_ParseAssembly(), and SV_PickRandomTile().
char mAssembly_s::title[MAX_VAR] |
The full title for this assembly. This string should be marked as translatable (_).
Definition at line 62 of file sv_rma.h.
Referenced by SV_GetMapTitle(), and SV_ParseAssembly().
Definition at line 69 of file sv_rma.h.
Referenced by SV_AddMapTiles(), SV_AddMissingTiles(), SV_AssembleMap(), SV_CalcRating(), SV_DumpPlaced(), SV_DumpRating(), SV_FitTile(), SV_ParseAssembly(), SV_PickRandomTile(), and SV_TestFilled().