UFO: Alien Invasion
|
Stores the parsed data of an assembly definition. See *.ump files. More...
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 |
int | seeds [MAX_ASSEMBLY_SEEDS] |
int | numSeeds |
Stores the parsed data of an assembly definition. See *.ump files.
Definition at line 108 of file sv_rma.cpp.
int Assembly::dx |
Definition at line 124 of file sv_rma.cpp.
Referenced by SV_AddMapTiles(), SV_AddMissingTiles(), SV_AddTile(), SV_FitTile(), and SV_ParseAssembly().
int Assembly::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 124 of file sv_rma.cpp.
Referenced by SV_AddMapTiles(), SV_AddMissingTiles(), SV_AddTile(), SV_FitTile(), and SV_ParseAssembly().
byte Assembly::fT[MAX_FIXEDTILES] |
Index of used (fix) tile in mTile[] array
Definition at line 115 of file sv_rma.cpp.
Referenced by SV_DoMapAssemble(), and SV_ParseAssembly().
byte Assembly::fX[MAX_FIXEDTILES] |
x position of the used (fix) tile in fT
Definition at line 116 of file sv_rma.cpp.
Referenced by SV_DoMapAssemble(), and SV_ParseAssembly().
byte Assembly::fY[MAX_FIXEDTILES] |
y position of the used (fix) tile in fT
Definition at line 117 of file sv_rma.cpp.
Referenced by SV_DoMapAssemble(), and SV_ParseAssembly().
int Assembly::height |
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 119 of file sv_rma.cpp.
Referenced by SV_AddMissingTiles(), SV_AddMissingTiles_r(), SV_BuildMapStrings(), SV_DoMapAssemble(), SV_DumpPlaced(), SV_FitTile(), SV_GapListBuild(), SV_GapListReduce(), SV_ParseAssembly(), SV_RmaPrintMap(), and SV_TestFilled().
char Assembly::id[MAX_VAR] |
The id (string) of the assembly as defined in the ump file (next to "assembly").
Definition at line 111 of file sv_rma.cpp.
Referenced by SV_AddMapTiles(), SV_AssembleMap_(), SV_DoMapAssemble(), SV_GetCvarToken(), SV_GetTileFromTileSet(), SV_GetTilesFromTileSet(), SV_ParseAssembly(), SV_ParseAssemblySeeds(), and SV_PrintAssemblyStats().
byte Assembly::max[MAX_TILETYPES] |
Maximum tile number for each used tile-type.
Definition at line 114 of file sv_rma.cpp.
Referenced by SV_GetTilesFromTileSet(), SV_ParseAssembly(), and SV_PrepareTilesToPlace().
byte Assembly::min[MAX_TILETYPES] |
Minimum tile number for each used tile-type.
Definition at line 113 of file sv_rma.cpp.
Referenced by SV_GetTilesFromTileSet(), SV_ParseAssembly(), and SV_PrepareTilesToPlace().
int Assembly::numFixed |
Number of fixed tiles. Counts entries of fX, fY and fT
Definition at line 118 of file sv_rma.cpp.
Referenced by SV_DoMapAssemble(), and SV_ParseAssembly().
int Assembly::numSeeds |
Definition at line 130 of file sv_rma.cpp.
Referenced by SV_AddMapTiles(), SV_DoMapAssemble(), SV_ParseAssemblySeeds(), and SV_PrintAssemblyStats().
int Assembly::seeds[MAX_ASSEMBLY_SEEDS] |
seeds that are used to assemble this assembly definition if the previous used seed did not lead to a solution. The seeds given in the seeds block of the assembly are known to work.
Definition at line 128 of file sv_rma.cpp.
Referenced by SV_DoMapAssemble(), and SV_ParseAssemblySeeds().
int Assembly::size |
the result of (width * height), memoized
Definition at line 123 of file sv_rma.cpp.
Referenced by SV_AddMapTiles(), SV_AddMissingTiles(), SV_ParseAssembly(), and SV_PrintAssemblyStats().
char Assembly::title[MAX_VAR] |
The full title for this assembly. This string should be marked as translatable (_).
Definition at line 112 of file sv_rma.cpp.
Referenced by MapInfo::getCurrentAssemblyTitle(), and SV_ParseAssembly().
int Assembly::width |
Definition at line 119 of file sv_rma.cpp.
Referenced by SV_AddMapTiles(), SV_AddMissingTiles(), SV_AddMissingTiles_r(), SV_BuildMapStrings(), SV_DoMapAssemble(), SV_DumpPlaced(), SV_FitTile(), SV_GapListBuild(), SV_GapListReduce(), SV_ParseAssembly(), SV_RmaPrintMap(), and SV_TestFilled().