(svn r20420) -Codechange: Add TileContext enum instead of using a bool.

This commit is contained in:
frosch
2010-08-09 07:10:42 +00:00
parent 67c21f7e01
commit 48c5091a7c
7 changed files with 28 additions and 20 deletions

View File

@@ -17,6 +17,12 @@
#include "tile_cmd.h"
/** Contextx for tile accesses */
enum TileContext {
TC_NORMAL, ///< Nothing special.
TC_UPPER_HALFTILE, ///< Querying information about the upper part of a tile with halftile foundation.
};
/**
* Maps an entity id stored on the map to a GRF file.
* Entities are objects used ingame (houses, industries, industry tiles) for
@@ -124,7 +130,7 @@ extern IndustryTileOverrideManager _industile_mngr;
extern AirportOverrideManager _airport_mngr;
extern AirportTileOverrideManager _airporttile_mngr;
uint32 GetTerrainType(TileIndex tile, bool upper_halftile = false);
uint32 GetTerrainType(TileIndex tile, TileContext context = TC_NORMAL);
TileIndex GetNearbyTile(byte parameter, TileIndex tile);
uint32 GetNearbyTileInformation(TileIndex tile);