|
OpenTTD Source 20260621-master-g720d10536d
|
Types related to maps. More...
Go to the source code of this file.
Data Structures | |
| struct | TileIndexDiffC |
| A pair-construct of a TileIndexDiff. More... | |
Typedefs | |
| typedef int32_t | TileIndexDiff |
| An offset value between two tiles. | |
Enumerations | |
| enum class | LevelMode : uint8_t { Level , Lower , 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 = 12 |
| Maximal size of map is equal to 2 ^ MAX_MAP_SIZE_BITS. | |
| static const uint | MIN_MAP_SIZE = 1U << MIN_MAP_SIZE_BITS |
| Minimal map size = 64. | |
| static const uint | MAX_MAP_SIZE = 1U << MAX_MAP_SIZE_BITS |
| Maximal map size = 4096. | |
Types related to maps.
Definition in file map_type.h.
| typedef int32_t TileIndexDiff |
An offset value between two tiles.
This value is used for the difference between two 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 23 of file map_type.h.
|
strong |
Argument for CmdLevelLand describing what to do.
| Enumerator | |
|---|---|
| Level | Level the land. |
| Lower | Lower the land. |
| Raise | Raise the land. |
Definition at line 43 of file map_type.h.
|
static |
Maximal map size = 4096.
Definition at line 40 of file map_type.h.
Referenced by Map::Allocate(), CYapfCostRoadT< Types >::PfCalcCost(), CreateScenarioWindow::UpdateWidgetSize(), GenerateLandscapeWindow::UpdateWidgetSize(), and NetworkGameWindow::UpdateWidgetSize().
|
static |
Maximal size of map is equal to 2 ^ MAX_MAP_SIZE_BITS.
Definition at line 38 of file map_type.h.
Referenced by DecrementTreeCounter(), RunTileLoop(), and TGPGetMaxHeight().
|
static |
|
static |
Minimal and maximal map width and height.
Minimal size of map is equal to 2 ^ MIN_MAP_SIZE_BITS
Definition at line 37 of file map_type.h.
Referenced by DecrementTreeCounter(), RunTileLoop(), and TGPGetMaxHeight().