Mercurial > repo
annotate interps/rail/src/Dir.h @ 11282:0987fcb66a1c
<oerjan> learn The porthellingularity will happen when boily starts making a porthello and cannot stop braiding in more and more words.
author | HackBot |
---|---|
date | Mon, 25 Dec 2017 18:53:10 +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 |