]> git.localhorst.tv Git - l2e.git/blob - src/common/Stats.h
3d813120381c5938d3e42bd5b4897bc7294f1775
[l2e.git] / src / common / Stats.h
1 #ifndef COMMON_STATS_H_
2 #define COMMON_STATS_H_
3
4 #include <SDL.h>
5
6 namespace common {
7
8 class Stats {
9
10 public:
11         static const int TYPE_ID = 305;
12
13 public:
14         Stats();
15         Stats(Uint16 attack, Uint16 defense, Uint16 strength, Uint16 agility, Uint16 intelligence, Uint8 gut, Uint16 magicResistance);
16
17 public:
18         Uint16 Attack() const { return attack; }
19         Uint16 Defense() const { return defense; }
20         Uint16 Strength() const { return strength; }
21         Uint16 Agility() const { return agility; }
22         Uint16 Intelligence() const { return intelligence; }
23         Uint8 Gut() const { return gut; }
24         Uint16 MagicResistance() const { return magicResistance; }
25
26         void SetAttack(Uint16 a) { attack = a; }
27         void SetDefense(Uint16 d) { defense = d; }
28         void SetStrength(Uint16 s) { strength = s; }
29         void SetAgility(Uint16 a) { agility = a; }
30         void SetIntelligence(Uint16 i) { intelligence = i; }
31         void SetGut(Uint8 g) { gut = g; }
32         void SetMagicResistance(Uint16 m) { magicResistance = m; }
33
34         static void CreateTypeDescription();
35         static void Construct(void *);
36
37 private:
38         int attack;
39         int defense;
40         int strength;
41         int agility;
42         int intelligence;
43         int magicResistance;
44         int gut;
45
46 };
47
48 }
49
50 #endif /* COMMON_STATS_H_ */