]> git.localhorst.tv Git - l2e.git/blobdiff - src/common/Capsule.h
put stat increments in level ladder
[l2e.git] / src / common / Capsule.h
index d54394fdb7748ed3a56afc57e806565eb554b9ca..60d70d2c6b6fd6c2bd01aa4101bc7f170e37d363 100644 (file)
@@ -3,15 +3,18 @@
 
 namespace common {
        class Item;
+       class LevelUp;
+       class Upgrade;
 }
 namespace graphics {
        class Animation;
        class Sprite;
 }
 
-#include "../common/Stats.h"
+#include "Stats.h"
 #include "../math/Vector.h"
 
+#include <vector>
 #include <SDL.h>
 
 namespace common {
@@ -65,6 +68,8 @@ public:
        int Experience() const { return experience; }
        int NextLevel() const;
 
+       void AddExperience(int, std::vector<Upgrade> &);
+
        graphics::Sprite *BattleSprite();
        const graphics::Sprite *BattleSprite() const;
        graphics::Animation *MeleeAnimation();
@@ -116,7 +121,7 @@ private:
        int level;
        int experience;
 
-       int *levelLadder;
+       LevelUp *levelLadder;
        int numLevels;
 
        Class *classes;
@@ -126,4 +131,4 @@ private:
 
 }
 
-#endif /* COMMON_CAPSULE_H_ */
+#endif