X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fbattle%2FAttackChoice.h;h=0068e6f67e50049c1e751c7da9240bf6c1a7a499;hb=26ea92a0e275e32f1fc166cde407a02c3e7e476b;hp=b11a81da0f2f689ce18b9bfbbfe3c4e998ae3048;hpb=4d0a650b178d81387caa36953ed06cc5d6c28213;p=l2e.git diff --git a/src/battle/AttackChoice.h b/src/battle/AttackChoice.h index b11a81d..0068e6f 100644 --- a/src/battle/AttackChoice.h +++ b/src/battle/AttackChoice.h @@ -8,6 +8,8 @@ #ifndef BATTLE_ATTACKCHOICE_H_ #define BATTLE_ATTACKCHOICE_H_ +#include "TargetSelection.h" + namespace battle { class AttackChoice { @@ -23,15 +25,18 @@ public: }; public: - AttackChoice() : type(UNDECIDED) { } + explicit AttackChoice(BattleState *b = 0) : type(UNDECIDED), selection(b) { } ~AttackChoice() { } public: Type GetType() const { return type; } void SetType(Type t) { type = t; } + TargetSelection &Selection() { return selection; } + const TargetSelection &Selection() const { return selection; } private: Type type; + TargetSelection selection; };