OpenTTD
|
Resolver for the industry tiles scope. More...
#include <newgrf_industrytiles.h>
Public Member Functions | |
IndustryTileScopeResolver (ResolverObject &ro, Industry *industry, TileIndex tile) | |
Constructor of the scope resolver for the industry tile. More... | |
uint32 | GetRandomBits () const |
Get a few random bits. More... | |
uint32 | GetVariable (byte variable, uint32 parameter, bool *available) const |
Get a variable value. More... | |
uint32 | GetTriggers () const |
Get the triggers. More... | |
![]() | |
ScopeResolver (ResolverObject &ro) | |
virtual void | StorePSA (uint reg, int32 value) |
Store a value into the persistent storage area (PSA). More... | |
Data Fields | |
Industry * | industry |
Industry owning the tiles. | |
TileIndex | tile |
Tile being resolved. | |
![]() | |
ResolverObject & | ro |
Surrounding resolver object. | |
Resolver for the industry tiles scope.
Definition at line 20 of file newgrf_industrytiles.h.
|
inline |
Constructor of the scope resolver for the industry tile.
ro | Surrounding resolver. |
industry | Industry owning the tile. |
tile | Tile of the industry. |
Definition at line 30 of file newgrf_industrytiles.h.
References GetRandomBits(), GetTriggers(), and GetVariable().
|
virtual |
Get a few random bits.
Default implementation has no random bits.
Reimplemented from ScopeResolver.
Definition at line 104 of file newgrf_industrytiles.cpp.
Referenced by IndustryTileScopeResolver().
|
virtual |
Get the triggers.
Base class returns 0
to prevent trouble.
Reimplemented from ScopeResolver.
Definition at line 112 of file newgrf_industrytiles.cpp.
Referenced by IndustryTileScopeResolver().
|
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 63 of file newgrf_industrytiles.cpp.
References ClosestTownFromTile(), GetAnimationFrame(), GetIndustryConstructionStage(), GetNearbyIndustryTileInformation(), GetRelativePosition(), GetTerrainType(), GetTownRadiusGroup(), industry, IsTileType(), Industry::location, MP_INDUSTRY, OrthogonalTileArea::tile, and tile.
Referenced by IndustryTileScopeResolver().