X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fbattle%2FAttackChoice.h;h=0049f1e2be198bd068713be96d26be3ddf124646;hb=ab063a95735fdb90e7c610015e9155283ba5eca6;hp=42eb0d3c51c2b40bde00a98e788f34bfa7891169;hpb=b7a90738b9ae701cfc86bf74a11ba59d7fcb17ba;p=l2e.git diff --git a/src/battle/AttackChoice.h b/src/battle/AttackChoice.h index 42eb0d3..0049f1e 100644 --- a/src/battle/AttackChoice.h +++ b/src/battle/AttackChoice.h @@ -1,16 +1,15 @@ -/* - * AttackChoice.h - * - * Created on: Aug 7, 2012 - * Author: holy - */ - #ifndef BATTLE_ATTACKCHOICE_H_ #define BATTLE_ATTACKCHOICE_H_ -#include "TargetSelection.h" +namespace battle { + class Battle; +} +namespace common { + class Item; + class Spell; +} -namespace common { class Item; } +#include "TargetSelection.h" namespace battle { @@ -27,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: @@ -35,6 +37,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; } @@ -49,4 +53,4 @@ private: } -#endif /* BATTLE_ATTACKCHOICE_H_ */ +#endif