4 * Created on: Aug 7, 2012
8 #ifndef BATTLE_ATTACKCHOICE_H_
9 #define BATTLE_ATTACKCHOICE_H_
11 #include "TargetSelection.h"
34 explicit AttackChoice(BattleState *b = 0) : thing(0), selection(b), type(UNDECIDED) { }
38 Type GetType() const { return type; }
39 void SetType(Type t) { type = t; }
40 const common::Item *GetItem() const { return (const common::Item *)thing; }
41 void SetItem(const common::Item *i) { thing = i; }
42 const common::Spell *GetSpell() const { return (const common::Spell *)thing; }
43 void SetSpell(const common::Spell *s) { thing = s; }
44 TargetSelection &Selection() { return selection; }
45 const TargetSelection &Selection() const { return selection; }
51 TargetSelection selection;
58 #endif /* BATTLE_ATTACKCHOICE_H_ */