comparison interps/rail/src/Dir.h @ 996:859f9b4339e6

<Gregor> tar xf egobot.tar.xz
author HackBot
date Sun, 09 Dec 2012 19:30:08 +0000
parents
children
comparison
equal deleted inserted replaced
995:6883f5911eb7 996:859f9b4339e6
1 // Dir.h
2
3 #ifndef DIR_H_RAIL_1
4 #define DIR_H_RAIL_1
5
6 #include "Vec.h"
7
8 namespace Dir
9 {
10 enum t
11 {
12 min = 0,
13 north = 0,
14 northeast = 1,
15 east = 2,
16 southeast = 3,
17 south = 4,
18 southwest = 5,
19 west = 6,
20 northwest = 7,
21 max = 7,
22 count = 8
23 };
24
25 t back(t current);
26 t left(t current);
27 t right(t current);
28 std::string dirToString(t current);
29 Vec dirToVec(t current);
30
31 void check(t current, std::string const & name);
32 }
33
34 #endif