]> git.localhorst.tv Git - l2e.git/blob - src/common/Upgrade.h
0a5c079e1a91b76bafe4b26d68bcbe3836eb16ce
[l2e.git] / src / common / Upgrade.h
1 #ifndef COMMON_UPGRADE_H_
2 #define COMMON_UPGRADE_H_
3
4 namespace common {
5
6 class Upgrade {
7
8 public:
9         enum Type {
10                 LEVEL_UP,
11                 MAX_HEALTH,
12                 MAX_MAGIC,
13                 ATTACK,
14                 DEFENSE,
15                 STRENGTH,
16                 AGILITY,
17                 INTELLIGENCE,
18                 GUT,
19                 MAGIC_RSISTANCE,
20                 LEVEL_NEXT,
21         };
22
23 public:
24         Upgrade(const char *name, Type type, int amount)
25         : name(name), type(type), amount(amount) { }
26
27 public:
28         const char *Name() const { return name; }
29         Type GetType() const { return type; }
30         int Amount() const { return amount; }
31
32 private:
33         const char *name;
34         Type type;
35         int amount;
36
37 };
38
39 }
40
41 #endif