Files @ r7596:afd285ff90bb
Branch filter:

Location: cpp/openttd-patchpack/source/src/yapf/yapf_common.cpp

miham
(svn r11123) -Update: WebTranslator2 update to 2007-09-17 12:45:29
afrikaans - 47 fixed, 52 changed by TrueTenacity (99)
brazilian_portuguese - 23 changed by fukumori (23)
bulgarian - 14 fixed by thetitan (14)
catalan - 3 changed by arnaullv (3)
croatian - 6 fixed, 12 changed by knovak (15), tperic (3)
danish - 20 fixed by ThomasA (20)
finnish - 20 fixed by habazi (20)
german - 10 fixed by Timwi (10)
hungarian - 1 fixed by miham (1)
italian - 1 fixed by lorenzodv (1)
japanese - 6 fixed by ickoonite (6)
norwegian_nynorsk - 6 fixed by pollux (6)
piglatin - 20 fixed by adammw (20)
russian - 20 fixed by Smoky555 (20)
slovak - 1 fixed by lengyel (1)
slovenian - 7 fixed by Necrolyte (7)
spanish - 1 changed by Cabu (1)
traditional_chinese - 21 fixed by xbddc (21)
/* $Id$ */

/** @file yapf_common.cpp */

#include "../stdafx.h"

#include "yapf.hpp"
#include "follow_track.hpp"
#include "yapf_node_rail.hpp"
#include "yapf_costbase.hpp"
#include "yapf_costcache.hpp"

/** translate tileh to the bitset of up-hill trackdirs */
const TrackdirBits CYapfCostBase::c_upwards_slopes[] = {
	TRACKDIR_BIT_NONE                    , ///<  no tileh
	TRACKDIR_BIT_X_SW | TRACKDIR_BIT_Y_NW, ///<  1
	TRACKDIR_BIT_X_SW | TRACKDIR_BIT_Y_SE, ///<  2
	TRACKDIR_BIT_X_SW                    , ///<  3
	TRACKDIR_BIT_X_NE | TRACKDIR_BIT_Y_SE, ///<  4
	TRACKDIR_BIT_NONE                    , ///<  5
	TRACKDIR_BIT_Y_SE                    , ///<  6
	TRACKDIR_BIT_NONE                    , ///<  7
	TRACKDIR_BIT_X_NE | TRACKDIR_BIT_Y_NW, ///<  8
	TRACKDIR_BIT_Y_NW                    , ///<  9
	TRACKDIR_BIT_NONE                    , ///< 10
	TRACKDIR_BIT_NONE                    , ///< 11
	TRACKDIR_BIT_X_NE                    , ///< 12
	TRACKDIR_BIT_NONE                    , ///< 13
	TRACKDIR_BIT_NONE                    , ///< 14
	TRACKDIR_BIT_NONE                    , ///< 15
};