4 * Created on: Aug 7, 2012
8 #ifndef BATTLE_ATTACKCHOICE_H_
9 #define BATTLE_ATTACKCHOICE_H_
11 #include "TargetSelection.h"
12 #include "../common/fwd.h"
29 explicit AttackChoice(BattleState *b = 0) : thing(0), selection(b), type(UNDECIDED) { }
33 Type GetType() const { return type; }
34 void SetType(Type t) { type = t; }
35 const common::Item *GetItem() const { return (const common::Item *)thing; }
36 void SetItem(const common::Item *i) { thing = i; }
37 const common::Spell *GetSpell() const { return (const common::Spell *)thing; }
38 void SetSpell(const common::Spell *s) { thing = s; }
39 TargetSelection &Selection() { return selection; }
40 const TargetSelection &Selection() const { return selection; }
46 TargetSelection selection;
53 #endif /* BATTLE_ATTACKCHOICE_H_ */