src/cmd_helper.h
branchNewGRF_ports
changeset 6872 1c4a4a609f85
parent 6460 b3017e083031
child 10455 22c441f5adf9
equal deleted inserted replaced
6871:5a9dc001e1ad 6872:1c4a4a609f85
     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; };