Mercurial > repo
annotate interps/rail/src/Dir.h @ 3251:72e50bb3171f
<nooodl> learn hthmonoids hthmonoids hthmonoids hthmonoids hthmonoids hthmonoids ...
author | HackBot |
---|---|
date | Sun, 30 Jun 2013 01:59:02 +0000 |
parents | 859f9b4339e6 |
children |
rev | line source |
---|---|
996 | 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 |