]> git.localhorst.tv Git - l2e.git/blobdiff - src/common/Spell.h
Merge branch 'menus'
[l2e.git] / src / common / Spell.h
index d9601260a007e84ae482c5ffeedcf35d8ad2c99a..f300197427c2d9567ec5c7b878675e7aed3006c4 100644 (file)
@@ -8,13 +8,15 @@
 #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 +31,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 +51,7 @@ private:
 
        int cost;
        TargetingMode targetingMode;
-       HeroGroup usableBy;
+       int heroMask;
 
        bool status;
        bool battle;