]> git.localhorst.tv Git - l2e.git/blobdiff - src/battle/AttackChoice.h
extracted battle logic into a class
[l2e.git] / src / battle / AttackChoice.h
index 1da0cdcde3a5b0a0e1f7b3969a384640f5de35a4..0049f1e2be198bd068713be96d26be3ddf124646 100644 (file)
@@ -1,6 +1,9 @@
 #ifndef BATTLE_ATTACKCHOICE_H_
 #define BATTLE_ATTACKCHOICE_H_
 
+namespace battle {
+       class Battle;
+}
 namespace common {
        class Item;
        class Spell;
@@ -23,7 +26,10 @@ public:
        };
 
 public:
-       explicit AttackChoice(BattleState *b = 0) : thing(0), selection(b), type(UNDECIDED) { }
+       AttackChoice()
+       : thing(0), selection(), type(UNDECIDED) { }
+       explicit AttackChoice(Battle *b)
+       : thing(0), selection(b), type(UNDECIDED) { }
        ~AttackChoice() { }
 
 public: