]> git.localhorst.tv Git - l2e.git/blob - src/battle/AttackChoice.h
added attack targets selection state
[l2e.git] / src / battle / AttackChoice.h
1 /*
2  * AttackChoice.h
3  *
4  *  Created on: Aug 7, 2012
5  *      Author: holy
6  */
7
8 #ifndef BATTLE_ATTACKCHOICE_H_
9 #define BATTLE_ATTACKCHOICE_H_
10
11 #include "TargetSelection.h"
12
13 namespace battle {
14
15 class AttackChoice {
16
17 public:
18         enum Type {
19                 SWORD,
20                 MAGIC,
21                 DEFEND,
22                 IKARI,
23                 ITEM,
24                 UNDECIDED
25         };
26
27 public:
28         explicit AttackChoice(BattleState *b = 0) : type(UNDECIDED), selection(b) { }
29         ~AttackChoice() { }
30
31 public:
32         Type GetType() const { return type; }
33         void SetType(Type t) { type = t; }
34         TargetSelection &Selection() { return selection; }
35         const TargetSelection &Selection() const { return selection; }
36
37 private:
38         Type type;
39         TargetSelection selection;
40
41 };
42
43 }
44
45 #endif /* BATTLE_ATTACKCHOICE_H_ */