OpenTTD Source
20240917-master-g9ab0a47812
|
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(uint8_t variable, [[maybe_unused]] uint32_t parameter,
bool &available)
const override;
84 friend void AirportTileOverrideManager::SetEntitySpec(
const AirportTileSpec *airpts);
TileIndex tile
Tile for the callback, only valid for airporttile callbacks.
ScopeResolver * GetScope(VarSpriteGroupScope scope=VSG_SCOPE_SELF, uint8_t relative=0) override
Get a resolver for the scope.
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.
Interface to query and set values specific to a single VarSpriteGroupScope (action 2 scope).
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.
@ VSG_SCOPE_SELF
Resolved object itself.
uint8_t StationGfx
Copy from station_map.h.
@ CBID_NO_CALLBACK
Set when using the callback resolve system, but not to resolve a callback.
uint8_t airport_id
Type of airport for which the callback is run.
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.
uint32_t GetVariable(uint8_t variable, [[maybe_unused]] uint32_t parameter, bool &available) const override
Get a variable value.
Resolver for the airport scope.
AirportTileScopeResolver tiles_scope
Scope resolver for the tiles.
uint32_t callback_param2
Second parameter (var 18) of the callback.
@ VSG_SCOPE_PARENT
Related object of the resolved one.
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.
uint8_t CargoID
Cargo slots to indicate a cargo type within a game.
virtual ScopeResolver * GetScope(VarSpriteGroupScope scope=VSG_SCOPE_SELF, uint8_t relative=0)
Get a resolver for the scope.
AirportTileScopeResolver(ResolverObject &ro, const AirportTileSpec *ats, TileIndex tile, Station *st)
Constructor of the scope resolver specific for airport tiles.
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.
uint8_t type
Type of this airport,.
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.