|
OpenTTD
|
Scope resolver of a canal tile. More...
Public Member Functions | |
| CanalScopeResolver (ResolverObject &ro, TileIndex tile) | |
| uint32 | GetRandomBits () const |
| Get a few random bits. | |
| uint32 | GetVariable (byte variable, uint32 parameter, bool *available) const |
| Get a variable value. | |
Public Member Functions inherited from ScopeResolver | |
| ScopeResolver (ResolverObject &ro) | |
| virtual uint32 | GetTriggers () const |
| Get the triggers. | |
| virtual void | SetTriggers (int triggers) const |
| Set the triggers. | |
| virtual void | StorePSA (uint reg, int32 value) |
| Store a value into the persistent storage area (PSA). | |
Data Fields | |
| TileIndex | tile |
| Tile containing the canal. | |
Data Fields inherited from ScopeResolver | |
| ResolverObject & | ro |
| Surrounding resolver object. | |
Scope resolver of a canal tile.
Definition at line 25 of file newgrf_canal.cpp.
|
virtual |
Get a few random bits.
Default implementation has no random bits.
Reimplemented from ScopeResolver.
Definition at line 52 of file newgrf_canal.cpp.
References GetWaterTileRandomBits(), IsTileType(), MP_WATER, and 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 58 of file newgrf_canal.cpp.
References DEBUG, DIR_E, DIR_N, DIR_NE, DIR_NW, DIR_S, DIR_SE, DIR_SW, DIR_W, GetLockPart(), GetTerrainType(), GetTileZ(), GetWaterTileRandomBits(), IsLock(), IsTileType(), IsWateredTile(), LOCK_PART_UPPER, MP_WATER, tile, and TILE_ADDXY.
1.8.1.2