OpenTTD Source 20241224-master-gf74b0cf984
|
Defines the data structure of each individual tile of an airport. More...
#include <newgrf_airporttiles.h>
Static Public Member Functions | |
static const AirportTileSpec * | Get (StationGfx gfx) |
Retrieve airport tile spec for the given airport tile. | |
static const AirportTileSpec * | GetByTile (TileIndex tile) |
Retrieve airport tile spec for the given airport tile. | |
static void | ResetAirportTiles () |
This function initializes the tile array of AirportTileSpec. | |
Data Fields | |
AnimationInfo | animation |
Information about the animation. | |
StringID | name |
Tile Subname string, land information on this tile will give you "AirportName (TileSubname)". | |
uint8_t | callback_mask |
Bitmask telling which grf callback is set. | |
uint8_t | animation_special_flags |
Extra flags to influence the animation. | |
bool | enabled |
entity still available (by default true). newgrf can disable it, though | |
GRFFileProps | grf_prop |
properties related the the grf file | |
Static Private Attributes | |
static AirportTileSpec | tiles [NUM_AIRPORTTILES] |
Friends | |
void | AirportTileOverrideManager::SetEntitySpec (const AirportTileSpec *airpts) |
Defines the data structure of each individual tile of an airport.
Definition at line 68 of file newgrf_airporttiles.h.
|
static |
Retrieve airport tile spec for the given airport tile.
gfx | index of airport tile |
Definition at line 37 of file newgrf_airporttiles.cpp.
References lengthof, and MAX_UVALUE.
Referenced by CmdBuildAirport(), GetAirportTileIDAtOffset(), GetByTile(), NIHAirportTile::GetGRFID(), NIHAirportTile::GetSpec(), GetTranslatedAirportTileID(), and NIHAirportTile::IsInspectable().
|
static |
Retrieve airport tile spec for the given airport tile.
tile | The airport tile. |
Definition at line 50 of file newgrf_airporttiles.cpp.
References Get(), and GetAirportGfx().
Referenced by NIHAirportTile::Resolve().
|
static |
This function initializes the tile array of AirportTileSpec.
Definition at line 58 of file newgrf_airporttiles.cpp.
References _origin_airporttile_specs, and OverrideManagerBase::ResetOverride().
Referenced by ResetNewGRFData().
AnimationInfo AirportTileSpec::animation |
Information about the animation.
Definition at line 69 of file newgrf_airporttiles.h.
Referenced by CmdBuildAirport().
uint8_t AirportTileSpec::animation_special_flags |
Extra flags to influence the animation.
Definition at line 72 of file newgrf_airporttiles.h.
uint8_t AirportTileSpec::callback_mask |
Bitmask telling which grf callback is set.
Definition at line 71 of file newgrf_airporttiles.h.
bool AirportTileSpec::enabled |
entity still available (by default true). newgrf can disable it, though
Definition at line 73 of file newgrf_airporttiles.h.
GRFFileProps AirportTileSpec::grf_prop |
properties related the the grf file
Definition at line 74 of file newgrf_airporttiles.h.
Referenced by AirportTileResolverObject::AirportTileResolverObject(), GetAirportTileIDAtOffset(), AirportTileResolverObject::GetDebugID(), NIHAirportTile::GetGRFID(), GetTranslatedAirportTileID(), and NIHAirportTile::IsInspectable().
StringID AirportTileSpec::name |
Tile Subname string, land information on this tile will give you "AirportName (TileSubname)".
Definition at line 70 of file newgrf_airporttiles.h.
|
staticprivate |
Definition at line 82 of file newgrf_airporttiles.h.