X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fcommon%2FSpell.h;h=2e2beb5226bf7952124df86f019b08a53f7e4057;hb=a3ba4dc677ad7c92eeb78b20b642241563605c9d;hp=0f864b81bda0c3c8bd42373e24cf324e82c9a3b1;hpb=1907ca03c5e865c4d398170042aa384c67ffff29;p=l2e.git diff --git a/src/common/Spell.h b/src/common/Spell.h index 0f864b8..2e2beb5 100644 --- a/src/common/Spell.h +++ b/src/common/Spell.h @@ -1,14 +1,6 @@ -/* - * 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 { @@ -32,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: @@ -51,7 +44,7 @@ private: int cost; TargetingMode targetingMode; - HeroGroup usableBy; + int heroMask; bool status; bool battle;