4 * Created on: Aug 7, 2012
8 #ifndef BATTLE_ATTACKCHOICE_H_
9 #define BATTLE_ATTACKCHOICE_H_
11 #include "TargetSelection.h"
13 namespace common { class Item; }
30 explicit AttackChoice(BattleState *b = 0) : thing(0), selection(b), type(UNDECIDED) { }
34 Type GetType() const { return type; }
35 void SetType(Type t) { type = t; }
36 const common::Item *GetItem() const { return (const common::Item *)thing; }
37 void SetItem(const common::Item *i) { thing = i; }
38 TargetSelection &Selection() { return selection; }
39 const TargetSelection &Selection() const { return selection; }
45 TargetSelection selection;
52 #endif /* BATTLE_ATTACKCHOICE_H_ */