diff options
author | Ben Longbons <b.r.longbons@gmail.com> | 2014-06-10 15:31:24 -0700 |
---|---|---|
committer | Ben Longbons <b.r.longbons@gmail.com> | 2014-06-23 21:07:14 -0700 |
commit | 1c1752f40aac20bf9a5e56817951a013c2219bed (patch) | |
tree | d4ca348dd88ec08cf4edbdd37b72396b75a914a4 /src/map/magic-interpreter.t.hpp | |
parent | 8ce2f240dba5bdd0ca47ac25f16f140d8d1744fc (diff) | |
download | tmwa-1c1752f40aac20bf9a5e56817951a013c2219bed.tar.gz tmwa-1c1752f40aac20bf9a5e56817951a013c2219bed.tar.bz2 tmwa-1c1752f40aac20bf9a5e56817951a013c2219bed.tar.xz tmwa-1c1752f40aac20bf9a5e56817951a013c2219bed.zip |
Generate the map server protocol
Sigh, map server will have no smart filters yet
Diffstat (limited to 'src/map/magic-interpreter.t.hpp')
-rw-r--r-- | src/map/magic-interpreter.t.hpp | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/src/map/magic-interpreter.t.hpp b/src/map/magic-interpreter.t.hpp index 1fe5fa3..780d011 100644 --- a/src/map/magic-interpreter.t.hpp +++ b/src/map/magic-interpreter.t.hpp @@ -47,38 +47,6 @@ enum class TYPE : uint8_t NEGATIVE_1 = 255, }; -// Note: there is also a typedef by this name in <dirent.h> -// but we should be fine since we never include it. -// (in the long term we should still rename this though) -enum class DIR : uint8_t -{ - S = 0, - SW = 1, - W = 2, - NW = 3, - N = 4, - NE = 5, - E = 6, - SE = 7, - - COUNT, -}; - -constexpr -earray<int, DIR, DIR::COUNT> dirx //= -{{ - 0, -1, -1, -1, 0, 1, 1, 1, -}}, diry //= -{{ - 1, 1, 0, -1, -1, -1, 0, 1, -}}; - -constexpr -bool dir_is_diagonal(DIR d) -{ - return static_cast<uint8_t>(d) & 1; -} - enum class AREA : uint8_t { LOCATION, |