From c67c2b7435a13d7ce17b2075e22dc5c6036f702a Mon Sep 17 00:00:00 2001 From: Ben Longbons Date: Mon, 4 Feb 2013 00:49:50 -0800 Subject: Remove some more Skill-related stuff --- src/map/magic-interpreter.t.hpp | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'src/map/magic-interpreter.t.hpp') diff --git a/src/map/magic-interpreter.t.hpp b/src/map/magic-interpreter.t.hpp index 49fd3e1..26dc8d9 100644 --- a/src/map/magic-interpreter.t.hpp +++ b/src/map/magic-interpreter.t.hpp @@ -64,6 +64,21 @@ enum class DIR : uint8_t COUNT, }; +constexpr +earray 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(d) & 1; +} + enum class AREA : uint8_t { LOCATION, -- cgit v1.2.3-70-g09d2