1 #ifndef BATTLE_ATTACKCHOICE_H_
2 #define BATTLE_ATTACKCHOICE_H_
4 #include "TargetSelection.h"
5 #include "../common/fwd.h"
22 explicit AttackChoice(BattleState *b = 0) : thing(0), selection(b), type(UNDECIDED) { }
26 Type GetType() const { return type; }
27 void SetType(Type t) { type = t; }
28 const common::Item *GetItem() const { return (const common::Item *)thing; }
29 void SetItem(const common::Item *i) { thing = i; }
30 const common::Spell *GetSpell() const { return (const common::Spell *)thing; }
31 void SetSpell(const common::Spell *s) { thing = s; }
32 TargetSelection &Selection() { return selection; }
33 const TargetSelection &Selection() const { return selection; }
39 TargetSelection selection;
46 #endif /* BATTLE_ATTACKCHOICE_H_ */