]> git.localhorst.tv Git - l2e.git/blobdiff - src/battle/AttackChoice.h
fix bug in select attack type state that caused the tag positioning to go nuts
[l2e.git] / src / battle / AttackChoice.h
index b11a81da0f2f689ce18b9bfbbfe3c4e998ae3048..0068e6f67e50049c1e751c7da9240bf6c1a7a499 100644 (file)
@@ -8,6 +8,8 @@
 #ifndef BATTLE_ATTACKCHOICE_H_
 #define BATTLE_ATTACKCHOICE_H_
 
+#include "TargetSelection.h"
+
 namespace battle {
 
 class AttackChoice {
@@ -23,15 +25,18 @@ public:
        };
 
 public:
-       AttackChoice() : type(UNDECIDED) { }
+       explicit AttackChoice(BattleState *b = 0) : type(UNDECIDED), selection(b) { }
        ~AttackChoice() { }
 
 public:
        Type GetType() const { return type; }
        void SetType(Type t) { type = t; }
+       TargetSelection &Selection() { return selection; }
+       const TargetSelection &Selection() const { return selection; }
 
 private:
        Type type;
+       TargetSelection selection;
 
 };