12 #ifndef NEWGRF_AIRPORTTILES_H 13 #define NEWGRF_AIRPORTTILES_H 42 uint32
GetVariable(byte variable, uint32 parameter,
bool *available)
const;
75 static void ResetAirportTiles();
80 friend void AirportTileOverrideManager::SetEntitySpec(
const AirportTileSpec *airpts);
byte type
Type of this airport,.
Interface to query and set values specific to a single VarSpriteGroupScope (action 2 scope)...
Tile information, used while rendering the tile.
Maps accessors for stations.
StationGfx GetTranslatedAirportTileID(StationGfx gfx)
Do airporttile gfx ID translation for NewGRFs.
ResolverObject & ro
Surrounding resolver object.
Interface for SpriteGroup-s to access the gamestate.
struct Station * st
Station of the airport for which the callback is run, or NULL for build gui.
Definitions related to NewGRF animation.
Set when using the callback resolve system, but not to resolve a callback.
virtual ScopeResolver * GetScope(VarSpriteGroupScope scope=VSG_SCOPE_SELF, byte relative=0)
Get a resolver for the scope.
byte airport_id
Type of airport for which the callback is run.
Various declarations for airports.
Resolver for tiles of an airport.
Data related to the handling of grf files.
bool enabled
entity still available (by default true). newgrf can disable it, though
static const uint NUM_AIRPORTTILES
Total number of airport tiles.
StringID name
Tile Subname string, land information on this tile will give you "AirportName (TileSubname)".
uint8 animation_special_flags
Extra flags to influence the animation.
uint32 StringID
Numeric value that represents a string, independent of the selected language.
uint32 GetVariable(byte variable, uint32 parameter, bool *available) const
Get a variable value.
uint32 GetRandomBits() const
Get a few random bits.
byte StationGfx
Copy from station_map.h.
uint32 TileIndex
The index/ID of a Tile.
ScopeResolver * GetScope(VarSpriteGroupScope scope=VSG_SCOPE_SELF, byte relative=0)
Get a resolver for the scope.
AnimationInfo animation
Information about the animation.
Defines the data structure of each individual tile of an airport.
uint8 callback_mask
Bitmask telling which grf callback is set.
This file simplyfies and embeds a common mechanism of loading/saving and mapping of grf entities...
TileIndex tile
Tile for the callback, only valid for airporttile callbacks.
AirportTileScopeResolver tiles_scope
Scope resolver for the tiles.
Information about animation.
Airport airport
Tile area the airport covers.
CallbackID
List of implemented NewGRF callbacks.
Scope resolver for handling the tiles of an airport.
AirportTileScopeResolver(ResolverObject &ro, const AirportTileSpec *ats, TileIndex tile, Station *st)
Constructor of the scope resolver specific for airport tiles.
byte CargoID
Cargo slots to indicate a cargo type within a game.
Base classes/functions for stations.
GRFFileProps grf_prop
properties related the the grf file
AirpAnimationTrigger
Animation triggers for airport tiles.