]> git.localhorst.tv Git - l2e.git/blobdiff - src/battle/Stats.h
added constructors for described types
[l2e.git] / src / battle / Stats.h
index b935e02a73f28ba7aedc4c1c9feb0f78faa26daa..e53111d70df8e2f3169be0b0cddd8bee639b6bad 100644 (file)
@@ -27,14 +27,25 @@ public:
        Uint8 Gut() const { return gut; }
        Uint16 MagicResistance() const { return magicResistance; }
 
+       void SetAttack(Uint16 a) { attack = a; }
+       void SetDefense(Uint16 d) { defense = d; }
+       void SetStrength(Uint16 s) { strength = s; }
+       void SetAgility(Uint16 a) { agility = a; }
+       void SetIntelligence(Uint16 i) { intelligence = i; }
+       void SetGut(Uint8 g) { gut = g; }
+       void SetMagicResistance(Uint16 m) { magicResistance = m; }
+
+       static void CreateTypeDescription();
+       static void Construct(void *);
+
 private:
-       Uint16 attack;
-       Uint16 defense;
-       Uint16 strength;
-       Uint16 agility;
-       Uint16 intelligence;
-       Uint16 magicResistance;
-       Uint8 gut;
+       int attack;
+       int defense;
+       int strength;
+       int agility;
+       int intelligence;
+       int magicResistance;
+       int gut;
 
 };