]> git.localhorst.tv Git - l2e.git/blobdiff - src/battle/AttackChoice.h
added capsule attack/animation handling
[l2e.git] / src / battle / AttackChoice.h
index 42eb0d3c51c2b40bde00a98e788f34bfa7891169..b73e4203b54ef9f710867b5008b3bd636dc36e82 100644 (file)
@@ -1,16 +1,12 @@
-/*
- * AttackChoice.h
- *
- *  Created on: Aug 7, 2012
- *      Author: holy
- */
-
 #ifndef BATTLE_ATTACKCHOICE_H_
 #define BATTLE_ATTACKCHOICE_H_
 
-#include "TargetSelection.h"
+namespace common {
+       class Item;
+       class Spell;
+}
 
-namespace common { class Item; }
+#include "TargetSelection.h"
 
 namespace battle {
 
@@ -35,6 +31,8 @@ public:
        void SetType(Type t) { type = t; }
        const common::Item *GetItem() const { return (const common::Item *)thing; }
        void SetItem(const common::Item *i) { thing = i; }
+       const common::Spell *GetSpell() const { return (const common::Spell *)thing; }
+       void SetSpell(const common::Spell *s) { thing = s; }
        TargetSelection &Selection() { return selection; }
        const TargetSelection &Selection() const { return selection; }