1 #ifndef BATTLE_ATTACKCHOICE_H_
2 #define BATTLE_ATTACKCHOICE_H_
9 #include "TargetSelection.h"
26 explicit AttackChoice(BattleState *b = 0) : thing(0), selection(b), type(UNDECIDED) { }
30 Type GetType() const { return type; }
31 void SetType(Type t) { type = t; }
32 const common::Item *GetItem() const { return (const common::Item *)thing; }
33 void SetItem(const common::Item *i) { thing = i; }
34 const common::Spell *GetSpell() const { return (const common::Spell *)thing; }
35 void SetSpell(const common::Spell *s) { thing = s; }
36 TargetSelection &Selection() { return selection; }
37 const TargetSelection &Selection() const { return selection; }
43 TargetSelection selection;
50 #endif /* BATTLE_ATTACKCHOICE_H_ */