equal
deleted
inserted
replaced
1 /* $Id$ */ |
1 /* $Id$ */ |
2 |
2 |
3 #ifndef CMD_HELPER_H |
3 #ifndef CMD_HELPER_H |
4 #define CMD_HELPER_H |
4 #define CMD_HELPER_H |
5 |
5 |
6 #include "direction.h" |
6 #include "direction_type.h" |
7 #include "macros.h" |
7 #include "road_type.h" |
8 #include "road.h" |
|
9 |
8 |
10 |
9 |
11 template<uint N> static inline void ExtractValid(); |
10 template<uint N> static inline void ExtractValid(); |
12 template<> static inline void ExtractValid<1>() {} |
11 template<> inline void ExtractValid<1>() {} |
13 |
12 |
14 |
13 |
15 template<typename T> struct ExtractBits; |
14 template<typename T> struct ExtractBits; |
16 template<> struct ExtractBits<Axis> { static const uint Count = 1; }; |
15 template<> struct ExtractBits<Axis> { static const uint Count = 1; }; |
17 template<> struct ExtractBits<DiagDirection> { static const uint Count = 2; }; |
16 template<> struct ExtractBits<DiagDirection> { static const uint Count = 2; }; |