|
OpenTTD Source
14.0-beta1
|
Go to the documentation of this file.
10 #ifndef NEWGRF_AIRPORTTILES_H
11 #define NEWGRF_AIRPORTTILES_H
36 assert(
st !=
nullptr);
41 uint32_t
GetVariable(
byte variable, [[maybe_unused]] uint32_t parameter,
bool *available)
const override;
84 friend void AirportTileOverrideManager::SetEntitySpec(
const AirportTileSpec *airpts);
byte StationGfx
Copy from station_map.h.
TileIndex tile
Tile for the callback, only valid for airporttile callbacks.
Tile information, used while rendering the tile.
uint32_t StringID
Numeric value that represents a string, independent of the selected language.
uint8_t animation_special_flags
Extra flags to influence the animation.
AirportTileResolverObject(const AirportTileSpec *ats, TileIndex tile, Station *st, CallbackID callback=CBID_NO_CALLBACK, uint32_t callback_param1=0, uint32_t callback_param2=0)
Constructor of the resolver for airport tiles.
struct Station * st
Station of the airport for which the callback is run, or nullptr for build gui.
Interface for SpriteGroup-s to access the gamestate.
Information about animation.
CallbackID
List of implemented NewGRF callbacks.
@ VSG_SCOPE_PARENT
Related object of the resolved one.
byte airport_id
Type of airport for which the callback is run.
Interface to query and set values specific to a single VarSpriteGroupScope (action 2 scope).
@ VSG_SCOPE_SELF
Resolved object itself.
static void ResetAirportTiles()
This function initializes the tile array of AirportTileSpec.
Defines the data structure of each individual tile of an airport.
AirportScopeResolver airport_scope
Scope resolver for the airport owning the tile.
@ CBID_NO_CALLBACK
Set when using the callback resolve system, but not to resolve a callback.
Data related to the handling of grf files.
Scope resolver for handling the tiles of an airport.
Airport airport
Tile area the airport covers.
static const uint NUM_AIRPORTTILES
Total number of airport tiles.
static const AirportTileSpec * GetByTile(TileIndex tile)
Retrieve airport tile spec for the given airport tile.
uint32_t GetDebugID() const override
Get an identifier for the item being resolved.
uint32_t GetRandomBits() const override
Get a few random bits.
virtual ScopeResolver * GetScope(VarSpriteGroupScope scope=VSG_SCOPE_SELF, byte relative=0)
Get a resolver for the scope.
Resolver for the airport scope.
AirportTileScopeResolver tiles_scope
Scope resolver for the tiles.
uint32_t GetVariable(byte variable, [[maybe_unused]] uint32_t parameter, bool *available) const override
Get a variable value.
uint32_t callback_param2
Second parameter (var 18) of the callback.
bool enabled
entity still available (by default true). newgrf can disable it, though
CallbackID callback
Callback being resolved.
uint32_t callback_param1
First parameter (var 10) of the callback.
byte type
Type of this airport,.
byte CargoID
Cargo slots to indicate a cargo type within a game.
AirportTileScopeResolver(ResolverObject &ro, const AirportTileSpec *ats, TileIndex tile, Station *st)
Constructor of the scope resolver specific for airport tiles.
ScopeResolver * GetScope(VarSpriteGroupScope scope=VSG_SCOPE_SELF, byte relative=0) override
Get a resolver for the scope.
uint8_t callback_mask
Bitmask telling which grf callback is set.
Resolver for tiles of an airport.
ResolverObject & ro
Surrounding resolver object.
AirpAnimationTrigger
Animation triggers for airport tiles.
StringID name
Tile Subname string, land information on this tile will give you "AirportName (TileSubname)".
static const AirportTileSpec * Get(StationGfx gfx)
Retrieve airport tile spec for the given airport tile.
GRFFileProps grf_prop
properties related the the grf file
GrfSpecFeature GetFeature() const override
Get the feature number being resolved for.
AnimationInfo animation
Information about the animation.