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