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