00001 #ifndef HEADER_DIR_H 00002 #define HEADER_DIR_H 00003 00004 #include "V2.h" 00005 00006 /** 00007 * Direction. 00008 */ 00009 class Dir { 00010 public: 00011 enum eDir { 00012 DIR_NO = 0, 00013 DIR_UP = 1, 00014 DIR_DOWN = 2, 00015 DIR_LEFT = 3, 00016 DIR_RIGHT = 4 00017 }; 00018 public: 00019 static V2 dir2xy(eDir dir); 00020 }; 00021 00022 #endif