diff -r 5ba7f20a14ca -r 2c84ed52709d yapf/yapf_costbase.hpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/yapf/yapf_costbase.hpp Sat May 27 16:12:16 2006 +0000 @@ -0,0 +1,26 @@ +/* $Id$ */ + +#ifndef YAPF_COSTBASE_HPP +#define YAPF_COSTBASE_HPP + +struct CYapfCostBase { + static const TrackdirBits c_upwards_slopes[16]; + + FORCEINLINE static bool stSlopeCost(TileIndex tile, Trackdir td) + { + if (IsDiagonalTrackdir(td)) { + uint tile_slope = GetTileSlope(tile, NULL) & 0x0F; + if ((c_upwards_slopes[tile_slope] & TrackdirToTrackdirBits(td)) != 0) { + return true; + } + } + return false; + } +}; + +struct CostRailSettings { + // look-ahead signal penalty +}; + + +#endif /* YAPF_COSTBASE_HPP */