|
OpenTTD Source 20260304-master-g1baaa74679
|
Handling of void tiles. More...
#include "stdafx.h"#include "landscape.h"#include "command_func.h"#include "viewport_func.h"#include "slope_func.h"#include "water.h"#include "table/strings.h"#include "table/sprites.h"#include "safeguards.h"Go to the source code of this file.
Functions | |
| 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. | |
| static void | GetTileDesc_Void (TileIndex tile, TileDesc &td) |
| Tile callback function signature for obtaining a tile description. | |
| static void | TileLoop_Void (TileIndex tile) |
| Tile callback function signature for running periodic tile updates. | |
Variables | |
| const TileTypeProcs | _tile_type_void_procs |
| TileTypeProcs definitions for TileType::Void tiles. | |
Handling of void tiles.
Definition in file void_cmd.cpp.
|
static |
Tile callback function signature for drawing a tile and its contents to the screen.
| ti | Information about the tile to draw |
Definition at line 23 of file void_cmd.cpp.
References _settings_game, DrawGroundSprite(), PALETTE_ALL_BLACK, SlopeToSpriteOffset(), and TileInfo::tileh.
|
static |
Tile callback function signature for obtaining the world Z coordinate of a given point of a tile.
| tile | The queries tile for the Z coordinate. |
| x | World X coordinate in tile "units". |
| y | World Y coordinate in tile "units". |
| ground_vehicle | Whether to get the Z coordinate of the ground vehicle, or the ground. |
Definition at line 34 of file void_cmd.cpp.
References GetPartialPixelZ(), and GetTilePixelSlopeOutsideMap().
Tile callback function signature for obtaining a tile description.
| tile | Tile being queried |
| td | Storage pointer for returned tile description |
Definition at line 44 of file void_cmd.cpp.
References TileDesc::owner, OWNER_NONE, and TileDesc::str.
|
static |
Tile callback function signature for running periodic tile updates.
| tile | The tile to update. |
Definition at line 51 of file void_cmd.cpp.
References TileLoop_Water().
|
extern |
TileTypeProcs definitions for TileType::Void tiles.
Definition at line 59 of file landscape.cpp.