17#include "table/strings.h"
61 .clear_tile_proc = [](
TileIndex, DoCommandFlags) {
return CommandCost(STR_ERROR_OFF_EDGE_OF_MAP); },
Common return value for all commands.
Functions related to commands.
static constexpr Owner OWNER_NONE
The tile has no ownership.
uint GetPartialPixelZ(int x, int y, Slope corners)
Determines height at given coordinate of a slope.
const TileTypeProcs _tile_type_void_procs
TileTypeProcs definitions for TileType::Void tiles.
Functions related to OTTD's landscape.
A number of safeguards to prevent using unsafe methods.
GameSettings _settings_game
Game settings of a running game or the scenario editor.
Functions related to slopes.
uint SlopeToSpriteOffset(Slope s)
Returns the Sprite offset for a given Slope.
Slope
Enumeration for the slope-type.
This file contains all sprite-related enums and defines.
static const PaletteID PALETTE_ALL_BLACK
Exchange any colour by black, needed for painting fictive tiles outside map.
Definition of base types and functions in a cross-platform compatible way.
Tile description for the 'land area information' tool.
StringID str
Description of the tile.
std::array< Owner, 4 > owner
Name of the owner(s).
Tile information, used while rendering the tile.
Slope tileh
Slope of the tile.
Set of callback functions for performing tile operations of a given tile type.
std::tuple< Slope, int > GetTilePixelSlopeOutsideMap(int x, int y)
Return the slope of a given tile, also for tiles outside the map (virtual "black" tiles).
StrongType::Typedef< uint32_t, struct TileIndexTag, StrongType::Compare, StrongType::Integer, StrongType::Compatible< int32_t >, StrongType::Compatible< int64_t > > TileIndex
The index/ID of a Tile.
void DrawGroundSprite(SpriteID image, PaletteID pal, const SubSprite *sub, int extra_offs_x, int extra_offs_y)
Draws a ground sprite for the current tile.
Functions related to (drawing on) viewports.
static void TileLoop_Void(TileIndex tile)
Tile callback function signature for running periodic tile updates.
static void GetTileDesc_Void(TileIndex tile, TileDesc &td)
Tile callback function signature for obtaining a tile description.
static void DrawTile_Void(TileInfo *ti)
Tile callback function signature for drawing a tile and its contents to the screen.
static int GetSlopePixelZ_Void(TileIndex tile, uint x, uint y, bool ground_vehicle)
Tile callback function signature for obtaining the world Z coordinate of a given point of a tile.
Functions related to water management.
void TileLoop_Water(TileIndex tile)
Tile callback function signature for running periodic tile updates.