|
enum | ErrorMessages {
ERR_TILE_BASE
,
ERR_TILE_TOO_HIGH
,
ERR_TILE_TOO_LOW
,
ERR_AREA_ALREADY_FLAT
,
ERR_EXCAVATION_WOULD_DAMAGE
,
ERR_LIMIT_REACHED
} |
| Error messages related to modifying tiles. More...
|
|
enum | Corner {
CORNER_W
,
CORNER_S
,
CORNER_E
,
CORNER_N
,
CORNER_INVALID
} |
| Enumeration for corners of tiles. More...
|
|
enum | Slope {
SLOPE_FLAT
,
SLOPE_W
,
SLOPE_S
,
SLOPE_E
,
SLOPE_N
,
SLOPE_STEEP
,
SLOPE_NW
,
SLOPE_SW
,
SLOPE_SE
,
SLOPE_NE
,
SLOPE_EW
,
SLOPE_NS
,
SLOPE_ELEVATED
,
SLOPE_NWS
,
SLOPE_WSE
,
SLOPE_SEN
,
SLOPE_ENW
,
SLOPE_STEEP_W
,
SLOPE_STEEP_S
,
SLOPE_STEEP_E
,
SLOPE_STEEP_N
,
SLOPE_INVALID
} |
| Enumeration for the slope-type. More...
|
|
enum | TransportType {
TRANSPORT_RAIL
,
TRANSPORT_ROAD
,
TRANSPORT_WATER
,
TRANSPORT_AIR
,
TRANSPORT_INVALID
} |
| The different transport types a tile can have. More...
|
|
enum | BuildType {
BT_FOUNDATION
,
BT_TERRAFORM
,
BT_BUILD_TREES
,
BT_CLEAR_GRASS
,
BT_CLEAR_ROUGH
,
BT_CLEAR_ROCKY
,
BT_CLEAR_FIELDS
,
BT_CLEAR_HOUSE
,
BT_CLEAR_WATER
} |
| Get the base cost for building/clearing several things. More...
|
|
enum | TerrainType {
TERRAIN_NORMAL
,
TERRAIN_DESERT
,
TERRAIN_RAINFOREST
,
TERRAIN_SNOW
} |
| The types of terrain a tile can have. More...
|
|
|
static bool | IsBuildable (TileIndex tile) |
| Check if this tile is buildable, i.e. More...
|
|
static bool | IsBuildableRectangle (TileIndex tile, int width, int height) |
| Check if this tile is buildable in a rectangle around a tile, with the entry in the list as top-left. More...
|
|
static bool | IsSeaTile (TileIndex tile) |
| Checks whether the given tile is actually a sea tile. More...
|
|
static bool | IsRiverTile (TileIndex tile) |
| Checks whether the given tile is actually a river tile. More...
|
|
static bool | IsWaterTile (TileIndex tile) |
| Checks whether the given tile is actually a water tile. More...
|
|
static bool | IsCoastTile (TileIndex tile) |
| Checks whether the given tile is actually a coast tile. More...
|
|
static bool | IsStationTile (TileIndex tile) |
| Checks whether the given tile is a station tile of any station. More...
|
|
static bool | IsSteepSlope (Slope slope) |
| Check if a tile has a steep slope. More...
|
|
static bool | IsHalftileSlope (Slope slope) |
| Check if a tile has a halftile slope. More...
|
|
static bool | HasTreeOnTile (TileIndex tile) |
| Check if the tile has any tree on it. More...
|
|
static bool | IsFarmTile (TileIndex tile) |
| Check if the tile is a farmland tile. More...
|
|
static bool | IsRockTile (TileIndex tile) |
| Check if the tile is a rock tile. More...
|
|
static bool | IsRoughTile (TileIndex tile) |
| Check if the tile is a rough tile. More...
|
|
static bool | IsSnowTile (TileIndex tile) |
| Check if the tile without buildings or infrastructure is a snow tile. More...
|
|
static bool | IsDesertTile (TileIndex tile) |
| Check if the tile without buildings or infrastructure is a desert tile. More...
|
|
static TerrainType | GetTerrainType (TileIndex tile) |
| Get the type of terrain regardless of buildings or infrastructure. More...
|
|
static Slope | GetSlope (TileIndex tile) |
| Get the slope of a tile. More...
|
|
static Slope | GetComplementSlope (Slope slope) |
| Get the complement of the slope. More...
|
|
static int | GetMinHeight (TileIndex tile) |
| Get the minimal height on a tile. More...
|
|
static int | GetMaxHeight (TileIndex tile) |
| Get the maximal height on a tile. More...
|
|
static int | GetCornerHeight (TileIndex tile, Corner corner) |
| Get the height of a certain corner of a tile. More...
|
|
static GSCompany::CompanyID | GetOwner (TileIndex tile) |
| Get the owner of the tile. More...
|
|
static bool | HasTransportType (TileIndex tile, TransportType transport_type) |
| Checks whether the given tile contains parts suitable for the given TransportType. More...
|
|
static int | GetCargoAcceptance (TileIndex tile, CargoID cargo_type, int width, int height, int radius) |
| Check how much cargo this tile accepts. More...
|
|
static int | GetCargoProduction (TileIndex tile, CargoID cargo_type, int width, int height, int radius) |
| Checks how many producers in the radius produces this cargo. More...
|
|
static int | GetDistanceManhattanToTile (TileIndex tile_from, TileIndex tile_to) |
| Get the manhattan distance from the tile to the tile. More...
|
|
static int | GetDistanceSquareToTile (TileIndex tile_from, TileIndex tile_to) |
| Get the square distance from the tile to the tile. More...
|
|
static bool | RaiseTile (TileIndex tile, Slope slope) |
| Raise the given corners of the tile. More...
|
|
static bool | LowerTile (TileIndex tile, Slope slope) |
| Lower the given corners of the tile. More...
|
|
static bool | LevelTiles (TileIndex start_tile, TileIndex end_tile) |
| Level all tiles in the rectangle between start_tile and end_tile so they are at the same height. More...
|
|
static bool | DemolishTile (TileIndex tile) |
| Destroy everything on the given tile. More...
|
|
static bool | PlantTree (TileIndex tile) |
| Create a random tree on a tile. More...
|
|
static bool | PlantTreeRectangle (TileIndex tile, int width, int height) |
| Create a random tree on a rectangle of tiles. More...
|
|
static bool | IsWithinTownInfluence (TileIndex tile, TownID town_id) |
| Find out if this tile is within the rating influence of a town. More...
|
|
static TownID | GetTownAuthority (TileIndex tile) |
| Find the town which has authority for the tile. More...
|
|
static TownID | GetClosestTown (TileIndex tile) |
| Find the town that is closest to a tile. More...
|
|
static Money | GetBuildCost (BuildType build_type) |
| Get the baseprice of building/clearing various tile-related things. More...
|
|
Class that handles all tile related functions.