]> git.localhorst.tv Git - l2e.git/commitdiff
added setters for stats
authorDaniel Karbach <daniel.karbach@localhorst.tv>
Tue, 28 Aug 2012 19:36:10 +0000 (21:36 +0200)
committerDaniel Karbach <daniel.karbach@localhorst.tv>
Tue, 28 Aug 2012 19:36:10 +0000 (21:36 +0200)
src/battle/Stats.h

index b935e02a73f28ba7aedc4c1c9feb0f78faa26daa..ae885bf4aa6021a01d02ad244757f9be856eb5cb 100644 (file)
@@ -27,6 +27,14 @@ 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; }
+
 private:
        Uint16 attack;
        Uint16 defense;