(svn r11663) -Codechange: moving of the road related types and functions.

This commit is contained in:
rubidium
2007-12-18 20:38:16 +00:00
parent 2e2d76f445
commit efc18e8ab3
18 changed files with 253 additions and 232 deletions

View File

@@ -8,7 +8,7 @@
#include "macros.h"
#include "track_func.h"
#include "rail_type.h"
#include "road.h"
#include "road_func.h"
#include "tile.h"
@@ -305,6 +305,16 @@ RoadBits GetAnyRoadBits(TileIndex tile, RoadType rt);
*/
TrackBits GetAnyRoadTrackBits(TileIndex tile, RoadType rt);
/**
* Return if the tile is a valid tile for a crossing.
*
* @note function is overloaded
* @param tile the curent tile
* @param ax the axis of the road over the rail
* @return true if it is a valid tile
*/
bool IsPossibleCrossing(const TileIndex tile, Axis ax);
static inline void MakeRoadNormal(TileIndex t, RoadBits bits, RoadTypes rot, TownID town, Owner road, Owner tram, Owner hway)
{