From a1a02150d710df2838060445b9ad447689538985 Mon Sep 17 00:00:00 2001 From: Ben Longbons Date: Sun, 23 Dec 2012 14:23:32 -0800 Subject: Enumify some more things ... maybe even everything --- src/map/skill.t.hpp | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'src/map/skill.t.hpp') diff --git a/src/map/skill.t.hpp b/src/map/skill.t.hpp index fe10699..e286831 100644 --- a/src/map/skill.t.hpp +++ b/src/map/skill.t.hpp @@ -3,6 +3,8 @@ #include +#include "../common/utils.hpp" + // only ST_NONE is actually used - TODO remove enum class SkillState { @@ -1417,4 +1419,23 @@ enum class SkillID : uint16_t #define MAX_SKILL_DB SkillID::MAX_SKILL_DB }; +namespace e +{ +enum class SkillFlags : uint16_t +{ + ZERO = 0x00, + // is a pool skill + FLAG = 0x01, +#define SKILL_POOL_FLAG SkillFlags::FLAG + // is an active pool skill + ACTIVE = 0x02, +#define SKILL_POOL_ACTIVE SkillFlags::ACTIVE + // pool skill has been activated (used for clif) + ACTIVATED = 0x04, +#define SKILL_POOL_ACTIVATED SkillFlags::ACTIVATED +}; +ENUM_BITWISE_OPERATORS(SkillFlags) +} +using e::SkillFlags; + #endif // SKILL_T_HPP -- cgit v1.2.3-60-g2f50