Go to the documentation of this file.
89 constexpr
operator uint32()
const {
return this->
value; }
92 using StrongIntegralTypedef::operator ==;
93 using StrongIntegralTypedef::operator !=;
94 using StrongIntegralTypedef::operator +;
95 using StrongIntegralTypedef::operator -;
99 constexpr
bool operator ==(
int rhs)
const {
return this->
value == (uint32)rhs; }
100 constexpr
bool operator !=(
int rhs)
const {
return this->
value != (uint32)rhs; }
101 constexpr
TileIndex operator +(
int rhs)
const {
return { (uint32)(this->
value + rhs) }; }
102 constexpr
TileIndex operator -(
int rhs)
const {
return { (uint32)(this->
value - rhs) }; }
@ MP_CLEAR
A tile without any structures, i.e. grass, rocks, farm fields etc.
@ MP_HOUSE
A house by a town.
@ TROPICZONE_DESERT
Tile is desert.
static const uint MIN_SNOWLINE_HEIGHT
Minimum snowline height.
static const int MAX_VEHICLE_PIXEL_Y
Maximum height of a vehicle in pixels in #ZOOM_LVL_BASE.
@ TROPICZONE_RAINFOREST
Rainforest tile.
static constexpr TileIndex INVALID_TILE
The very nice invalid tile marker.
static const uint TILE_SIZE
Tile size in world coordinates.
static const uint MIN_CUSTOM_TERRAIN_TYPE
Lowest possible peak value for world generation.
@ MP_INDUSTRY
Part of an industry.
static const uint DEF_SNOWLINE_HEIGHT
Default snowline height.
static const uint MAX_TILE_HEIGHT
Maximum allowed tile height.
static const int MAX_VEHICLE_PIXEL_X
Maximum width of a vehicle in pixels in #ZOOM_LVL_BASE.
@ MP_ROAD
A tile with road (or tram tracks)
static const uint TILE_UNIT_MASK
For masking in/out the inner-tile world coordinate units.
static const uint MAX_MAP_HEIGHT_LIMIT
Upper bound of maximum allowed heightlevel (in the construction settings)
@ MP_OBJECT
Contains objects such as transmitters and owned land.
static const uint DEF_DESERT_COVERAGE
Default desert coverage.
static const uint MAX_BUILDING_PIXELS
Maximum height of a building in pixels in #ZOOM_LVL_BASE. (Also applies to "bridge buildings" on the ...
uint32 value
Backing storage field.
@ MP_TUNNELBRIDGE
Tunnel entry/exit and bridge heads.
@ MP_TREES
Tile got trees.
static const uint MIN_HEIGHTMAP_HEIGHT
Lowest possible peak value for heightmap creation.
TropicZone
Additional infos of a tile on a tropic game.
static const uint MIN_MAP_HEIGHT_LIMIT
Lower bound of maximum allowed heightlevel (in the construction settings)
@ MP_VOID
Invisible tiles at the SW and SE border.
TileType
The different types of tiles.
static const uint MAX_SNOWLINE_HEIGHT
Maximum allowed snowline height.
@ MP_STATION
A tile of a station.
Extension of StrongTypedef with operators for addition and subtraction.
static const uint TILE_HEIGHT
Height of a height level in world coordinate AND in pixels in #ZOOM_LVL_BASE.
static const uint TILE_PIXELS
Pixel distance between tile columns/rows in #ZOOM_LVL_BASE.
@ TROPICZONE_NORMAL
Normal tropiczone.
static const uint DEF_SNOW_COVERAGE
Default snow coverage.