X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fcommon%2FSpell.h;h=2e2beb5226bf7952124df86f019b08a53f7e4057;hb=cc3d698b8c1ad09d7a3f9e3f28bc84e0ac1735ea;hp=d9601260a007e84ae482c5ffeedcf35d8ad2c99a;hpb=7bdb085319a41fc51658a086696ab81c6b18ae52;p=l2e.git diff --git a/src/common/Spell.h b/src/common/Spell.h index d960126..2e2beb5 100644 --- a/src/common/Spell.h +++ b/src/common/Spell.h @@ -1,20 +1,15 @@ -/* - * Spell.h - * - * Created on: Aug 10, 2012 - * Author: holy - */ - #ifndef COMMON_SPELL_H_ #define COMMON_SPELL_H_ -#include "HeroGroup.h" #include "TargetingMode.h" namespace common { class Spell { +public: + static const int TYPE_ID = 304; + public: Spell(); @@ -29,8 +24,9 @@ public: TargetingMode &GetTargetingMode() { return targetingMode; } const TargetingMode &GetTargetingMode() const { return targetingMode; } - HeroGroup &UsableBy() { return usableBy; } - const HeroGroup &UsableBy() const { return usableBy; } + int HeroMask() const { return heroMask; } + + static bool Less(const Spell *, const Spell *); // temporary setters public: @@ -48,7 +44,7 @@ private: int cost; TargetingMode targetingMode; - HeroGroup usableBy; + int heroMask; bool status; bool battle;