Types related to maps. More...
Go to the source code of this file.
Data Structures | |
struct | Tile |
Data that is stored per tile. More... | |
struct | TileExtended |
Data that is stored per tile. More... | |
struct | TileHeightData |
Heightlevel data. More... | |
struct | TileIndexDiffC |
A pair-construct of a TileIndexDiff. More... | |
Defines | |
#define | STRAIGHT_TRACK_LENGTH 7071/10000 |
Approximation of the length of a straight track, relative to a diagonal track (ie the size of a tile side). | |
Typedefs | |
typedef int32 | TileIndexDiff |
An offset value between to tiles. | |
Enumerations | |
enum | LevelMode { LM_LEVEL, LM_LOWER, LM_RAISE } |
Argument for CmdLevelLand describing what to do. More... | |
Variables | |
static const uint | MIN_MAP_SIZE_BITS = 6 |
Minimal and maximal map width and height. | |
static const uint | MAX_MAP_SIZE_BITS = 15 |
Maximal size of map is equal to 2 ^ MAX_MAP_SIZE_BITS. | |
static const uint | MAX_MAP_TILES_BITS = 26 |
Maximal number of tiles in a map is equal to 2 ^ MAX_MAP_TILES_BITS. | |
static const uint | MIN_MAP_SIZE = 1 << MIN_MAP_SIZE_BITS |
Minimal map size = 64. | |
static const uint | MAX_MAP_SIZE = 1 << MAX_MAP_SIZE_BITS |
Maximal map size = 32768 (only if other side is 2048 or smaller). | |
static const uint | MAX_MAP_TILES = 1 << MAX_MAP_TILES_BITS |
Maximal number of tiles in a map = 8192 * 8192. |
Types related to maps.
Definition in file map_type.h.
#define STRAIGHT_TRACK_LENGTH 7071/10000 |
Approximation of the length of a straight track, relative to a diagonal track (ie the size of a tile side).
defined instead of const so it can stay integer. (no runtime float operations) Is this needed? Watch out! There are _no_ brackets around here, to prevent intermediate rounding! Be careful when using this! This value should be sqrt(2)/2 ~ 0.7071
Definition at line 89 of file map_type.h.
typedef int32 TileIndexDiff |
An offset value between to tiles.
This value is used fro the difference between to tiles. It can be added to a tileindex to get the resulting tileindex of the start tile applied with this saved difference.
Definition at line 58 of file map_type.h.
enum LevelMode |
Argument for CmdLevelLand describing what to do.
Definition at line 92 of file map_type.h.
const uint MIN_MAP_SIZE_BITS = 6 [static] |
Minimal and maximal map width and height.
Minimal size of map is equal to 2 ^ MIN_MAP_SIZE_BITS
Definition at line 72 of file map_type.h.
Referenced by BuildMapsizeDropDown().