OpenTTD
|
Scope resolver for handling the tiles of an airport. More...
#include <newgrf_airporttiles.h>
Public Member Functions | |
AirportTileScopeResolver (ResolverObject &ro, const AirportTileSpec *ats, TileIndex tile, Station *st) | |
Constructor of the scope resolver specific for airport tiles. More... | |
uint32 | GetRandomBits () const |
Get a few random bits. More... | |
uint32 | GetVariable (byte variable, uint32 parameter, bool *available) const |
Get a variable value. More... | |
![]() | |
ScopeResolver (ResolverObject &ro) | |
virtual uint32 | GetTriggers () const |
Get the triggers. More... | |
virtual void | StorePSA (uint reg, int32 value) |
Store a value into the persistent storage area (PSA). More... | |
Data Fields | |
struct Station * | st |
Station of the airport for which the callback is run, or NULL for build gui. | |
byte | airport_id |
Type of airport for which the callback is run. | |
TileIndex | tile |
Tile for the callback, only valid for airporttile callbacks. | |
![]() | |
ResolverObject & | ro |
Surrounding resolver object. | |
Scope resolver for handling the tiles of an airport.
Definition at line 23 of file newgrf_airporttiles.h.
|
inline |
Constructor of the scope resolver specific for airport tiles.
ats | Specification of the airport tiles. |
tile | Tile for the callback, only valid for airporttile callbacks. |
st | Station of the airport for which the callback is run, or NULL for build gui. |
Definition at line 34 of file newgrf_airporttiles.h.
|
virtual |
Get a few random bits.
Default implementation has no random bits.
Reimplemented from ScopeResolver.
Definition at line 204 of file newgrf_airporttiles.cpp.
References GetStationTileRandomBits(), and INVALID_TILE.
|
virtual |
Get a variable value.
Default implementation has no available variables.
variable | Variable to read | |
parameter | Parameter for 60+x variables | |
[out] | available | Set to false, in case the variable does not exist. |
Reimplemented from ScopeResolver.
Definition at line 163 of file newgrf_airporttiles.cpp.