|
OpenTTD Source 20251104-master-g3befbdd52f
|
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. | |
| uint32_t | GetRandomBits () const override |
| Get a few random bits. | |
| uint32_t | GetVariable (uint8_t variable, uint32_t parameter, bool &available) const override |
| Get a variable value. | |
Public Member Functions inherited from ScopeResolver | |
| ScopeResolver (ResolverObject &ro) | |
| virtual uint32_t | GetRandomTriggers () const |
| Get the triggers. | |
| virtual void | StorePSA (uint reg, int32_t value) |
| Store a value into the persistent storage area (PSA). | |
Data Fields | |
| struct Station * | st |
Station of the airport for which the callback is run, or nullptr for build gui. | |
| uint8_t | airport_id |
| Type of airport for which the callback is run. | |
| TileIndex | tile |
| Tile for the callback, only valid for airporttile callbacks. | |
| const AirportTileSpec * | ats |
Data Fields inherited from ScopeResolver | |
| 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 nullptr for build gui. |
Definition at line 35 of file newgrf_airporttiles.h.
References Station::airport, st, and Airport::type.
|
overridevirtual |
Get a few random bits.
Default implementation has no random bits.
Reimplemented from ScopeResolver.
Definition at line 205 of file newgrf_airporttiles.cpp.
References GetStationTileRandomBits(), INVALID_TILE, BaseStation::random_bits, st, and tile.
|
overridevirtual |
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 164 of file newgrf_airporttiles.cpp.
References Station::airport, ClosestTownFromTile(), Debug, GetAirportTileIDAtOffset(), GetAnimationFrame(), GetBadgeVariableResult(), GetNearbyAirportTileInformation(), GetNearbyTile(), GetRelativePosition(), GetTerrainType(), GetTownRadiusGroup(), ResolverObject::grffile, Pool< Titem, Tindex, Tgrowth_step, Tpool_type, Tcache >::PoolItem< Tpool >::index, ScopeResolver::ro, st, tile, OrthogonalTileArea::tile, and to_underlying().
| uint8_t AirportTileScopeResolver::airport_id |
Type of airport for which the callback is run.
Definition at line 25 of file newgrf_airporttiles.h.
| const AirportTileSpec* AirportTileScopeResolver::ats |
Definition at line 27 of file newgrf_airporttiles.h.
| struct Station* AirportTileScopeResolver::st |
Station of the airport for which the callback is run, or nullptr for build gui.
Definition at line 24 of file newgrf_airporttiles.h.
Referenced by AirportTileScopeResolver(), GetRandomBits(), and GetVariable().
| TileIndex AirportTileScopeResolver::tile |
Tile for the callback, only valid for airporttile callbacks.
Definition at line 26 of file newgrf_airporttiles.h.
Referenced by GetRandomBits(), and GetVariable().