]> git.localhorst.tv Git - l2e.git/blob - src/battle/AttackChoice.h
moved attack type into its own class
[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 namespace battle {
12
13 class AttackChoice {
14
15 public:
16         enum Type {
17                 SWORD,
18                 MAGIC,
19                 DEFEND,
20                 IKARI,
21                 ITEM,
22                 UNDECIDED
23         };
24
25 public:
26         AttackChoice() : type(UNDECIDED) { }
27         ~AttackChoice() { }
28
29 public:
30         Type GetType() const { return type; }
31         void SetType(Type t) { type = t; }
32
33 private:
34         Type type;
35
36 };
37
38 }
39
40 #endif /* BATTLE_ATTACKCHOICE_H_ */