OpenTTD Source
12.0-beta2
|
Go to the documentation of this file.
10 #ifndef NEWGRF_AIRPORTTILES_H
11 #define NEWGRF_AIRPORTTILES_H
36 assert(
st !=
nullptr);
41 uint32
GetVariable(
byte variable, uint32 parameter,
bool *available)
const override;
82 friend void AirportTileOverrideManager::SetEntitySpec(
const AirportTileSpec *airpts);
uint32 TileIndex
The index/ID of a Tile.
uint32 callback_param1
First parameter (var 10) of the callback.
byte StationGfx
Copy from station_map.h.
TileIndex tile
Tile for the callback, only valid for airporttile callbacks.
uint32 GetRandomBits() const override
Get a few random bits.
Tile information, used while rendering the tile.
uint32 GetVariable(byte variable, uint32 parameter, bool *available) const override
Get a variable value.
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.
byte airport_id
Type of airport for which the callback is run.
uint32 GetDebugID() const override
Get an identifier for the item being resolved.
Interface to query and set values specific to a single VarSpriteGroupScope (action 2 scope).
uint8 animation_special_flags
Extra flags to influence the animation.
@ 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.
uint32 callback_param2
Second parameter (var 18) of the callback.
@ 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.
StationGfx GetTranslatedAirportTileID(StationGfx gfx)
Do airporttile gfx ID translation for NewGRFs.
virtual ScopeResolver * GetScope(VarSpriteGroupScope scope=VSG_SCOPE_SELF, byte relative=0)
Get a resolver for the scope.
AirportTileScopeResolver tiles_scope
Scope resolver for the tiles.
uint32 StringID
Numeric value that represents a string, independent of the selected language.
AirportTileResolverObject(const AirportTileSpec *ats, TileIndex tile, Station *st, CallbackID callback=CBID_NO_CALLBACK, uint32 callback_param1=0, uint32 callback_param2=0)
Constructor of the resolver for airport tiles.
uint8 callback_mask
Bitmask telling which grf callback is set.
bool enabled
entity still available (by default true). newgrf can disable it, though
CallbackID callback
Callback being resolved.
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.
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)".
@ CT_INVALID
Invalid cargo type.
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.