Types related to tiles. More...
Go to the source code of this file.
Typedefs | |
typedef uint32 | TileIndex |
The index/ID of a Tile. | |
Enumerations | |
enum | TileType { MP_CLEAR, MP_RAILWAY, MP_ROAD, MP_HOUSE, MP_TREES, MP_STATION, MP_WATER, MP_VOID, MP_INDUSTRY, MP_TUNNELBRIDGE, MP_OBJECT } |
The different types of tiles. More... | |
enum | TropicZone { TROPICZONE_NORMAL = 0, TROPICZONE_DESERT = 1, TROPICZONE_RAINFOREST = 2 } |
Additional infos of a tile on a tropic game. More... | |
Variables | |
static const uint | TILE_SIZE = 16 |
Tiles are 16x16 "units" in size. | |
static const uint | HALF_TILE_SIZE = TILE_SIZE / 2 |
Half of tile size, to get centre of a tile. | |
static const uint | TILE_UNIT_MASK = TILE_SIZE - 1 |
For masking in/out the inner-tile units. | |
static const uint | TILE_PIXELS = 32 |
a tile is 32x32 pixels | |
static const uint | TILE_HEIGHT = 8 |
The standard height-difference between tiles on two levels is 8 (z-diff 8). | |
static const uint | MAX_TILE_HEIGHT_OLD = 15 |
Maximum allowed tile height - originally :-). | |
static const uint | MAX_TILE_HEIGHT_EXTENDED = 255 |
Maximum allowed tile height using the more heightlevels patch. | |
static const uint | MIN_SNOWLINE_HEIGHT = 2 |
Minimum snowline height. | |
static const uint | DEF_SNOWLINE_HEIGHT_OLD = 7 |
Default snowline height - originally. | |
static const uint | DEF_SNOWLINE_HEIGHT_EXTENDED = 24 |
Default snowline height using the more heightlevels patch. | |
static const uint | MAX_SNOWLINE_HEIGHT_OLD = (MAX_TILE_HEIGHT_OLD - 2) |
Maximum allowed snowline height - originally. | |
static const uint | MAX_SNOWLINE_HEIGHT_EXTENDED = (MAX_TILE_HEIGHT_EXTENDED - 2) |
Maximum allowed snowline height using the more heightlevels patch. | |
static const uint | MIN_DESERT_AMOUNT = 4 |
Minimum allowed desert amount. | |
static const uint | DEF_DESERT_AMOUNT = 7 |
Default desert amount. | |
static const uint | MAX_DESERT_AMOUNT = 200 |
Maximum allowed desert amount. | |
static const uint | MIN_TREELINE_HEIGHT = 0 |
Minimum allowed treeline height. | |
static const uint | DEF_TREELINE_HEIGHT_OLD = MAX_TILE_HEIGHT_OLD |
Default treeline height - originally. | |
static const uint | DEF_TREELINE_HEIGHT_EXTENDED = MAX_TILE_HEIGHT_EXTENDED |
Default treeline height using the more heightlevels patch. | |
static const uint | MAX_TREELINE_HEIGHT_OLD = MAX_TILE_HEIGHT_OLD |
Maximum allowed treeline height -originally. | |
static const uint | MAX_TREELINE_HEIGHT_EXTENDED = MAX_TILE_HEIGHT_EXTENDED |
Maximum allowed treeline height using the more heightlevels patch. | |
static const TileIndex | INVALID_TILE = (TileIndex)-1 |
The very nice invalid tile marker. |
Types related to tiles.
Definition in file tile_type.h.
enum TileType |
The different types of tiles.
Each tile belongs to one type, according whatever is build on it.
MP_CLEAR |
A tile without any structures, i.e. grass, rocks, farm fields etc. |
MP_RAILWAY |
A railway. |
MP_ROAD |
A tile with road (or tram tracks). |
MP_HOUSE |
A house by a town. |
MP_TREES |
Tile got trees. |
MP_STATION |
A tile of a station. |
MP_WATER |
Water tile. |
MP_VOID |
Invisible tiles at the SW and SE border. |
MP_INDUSTRY |
Part of an industry. |
MP_TUNNELBRIDGE |
Tunnel entry/exit and bridge heads. |
MP_OBJECT |
Contains objects such as transmitters and owned land. |
Definition at line 47 of file tile_type.h.
enum TropicZone |
Additional infos of a tile on a tropic game.
The tropiczone is not modified during gameplay. It mainly affects tree growth. (desert tiles are visible though)
In randomly generated maps: TROPICZONE_DESERT: Generated everywhere, if there is neither water nor mountains (TileHeight >= 4) in a certain distance from the tile. TROPICZONE_RAINFOREST: Genereated everywhere, if there is no desert in a certain distance from the tile. TROPICZONE_NORMAL: Everywhere else, i.e. between desert and rainforest and on sea (if you clear the water).
In scenarios: TROPICZONE_NORMAL: Default value. TROPICZONE_DESERT: Placed manually. TROPICZONE_RAINFOREST: Placed if you plant certain rainforest-trees.
TROPICZONE_NORMAL |
Normal tropiczone. |
TROPICZONE_DESERT |
Tile is desert. |
TROPICZONE_RAINFOREST |
Rainforest tile. |
Definition at line 76 of file tile_type.h.