]> git.localhorst.tv Git - l2e.git/blobdiff - src/common/Spell.h
removed stupid file headers that eclipse put in
[l2e.git] / src / common / Spell.h
index d9601260a007e84ae482c5ffeedcf35d8ad2c99a..2e2beb5226bf7952124df86f019b08a53f7e4057 100644 (file)
@@ -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;