]> git.localhorst.tv Git - l2e.git/blobdiff - src/common/Capsule.h
moved upgrade process to battle class
[l2e.git] / src / common / Capsule.h
index 5aa5f344fd6c09711f2c53f07cdc27507026e9f1..1e2a6311f07fe1f27ad871a527f24567f575fa21 100644 (file)
@@ -3,6 +3,7 @@
 
 namespace common {
        class Item;
+       class Upgrade;
 }
 namespace graphics {
        class Animation;
@@ -12,6 +13,7 @@ namespace graphics {
 #include "../common/Stats.h"
 #include "../math/Vector.h"
 
+#include <vector>
 #include <SDL.h>
 
 namespace common {
@@ -65,6 +67,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();