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. | |
Data Fields | |
| TileIndex | tile |
| Tile containing the canal. | |
Scope resolver of a canal tile.
Definition at line 22 of file newgrf_canal.cpp.
| uint32 CanalScopeResolver::GetRandomBits | ( | ) | const [virtual] |
Get a few random bits.
Default implementation has no random bits.
Reimplemented from ScopeResolver.
Definition at line 49 of file newgrf_canal.cpp.
References GetWaterTileRandomBits(), IsTileType(), MP_WATER, and tile.
| uint32 CanalScopeResolver::GetVariable | ( | byte | variable, | |
| uint32 | parameter, | |||
| bool * | available | |||
| ) | const [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 55 of file newgrf_canal.cpp.
References DEBUG, GetLockPart(), GetTerrainType(), GetTileZ(), GetWaterTileRandomBits(), IsLock(), IsTileType(), LOCK_PART_UPPER, MP_WATER, and tile.
1.7.1