Go to the source code of this file.
Data Structures | |
| struct | EntityIDMapping |
| Maps an entity id stored on the map to a GRF file. More... | |
| class | OverrideManagerBase |
| class | HouseOverrideManager |
| class | IndustryOverrideManager |
| class | IndustryTileOverrideManager |
Functions | |
| uint32 | GetTerrainType (TileIndex tile) |
| Function used by houses (and soon industries) to get information on type of "terrain" the tile it is queries sits on. | |
| TileIndex | GetNearbyTile (byte parameter, TileIndex tile) |
| uint32 | GetNearbyTileInformation (TileIndex tile) |
| Common part of station var 0x67 , house var 0x62, indtile var 0x60, industry var 0x62. | |
Variables | |
| HouseOverrideManager | _house_mngr |
| IndustryOverrideManager | _industry_mngr |
| IndustryTileOverrideManager | _industile_mngr |
Definition in file newgrf_commons.h.
| uint32 GetNearbyTileInformation | ( | TileIndex | tile | ) |
Common part of station var 0x67 , house var 0x62, indtile var 0x60, industry var 0x62.
| tile | the tile of interest. |
Definition at line 309 of file newgrf_commons.cpp.
References GetTerrainType(), GetTileType(), GetTreeGround(), IsTileType(), MP_TREES, MP_WATER, and TREE_GROUND_SHORE.
Referenced by GetNearbyIndustryTileInformation(), and HouseGetVariable().
| uint32 GetTerrainType | ( | TileIndex | tile | ) |
Function used by houses (and soon industries) to get information on type of "terrain" the tile it is queries sits on.
| tile | TileIndex of the tile been queried |
Definition at line 279 of file newgrf_commons.cpp.
References GetTropicZone().
Referenced by GetNearbyTileInformation(), and HouseGetVariable().
1.5.6