]> git.localhorst.tv Git - l2e.git/blobdiff - src/common/Capsule.h
feed victory messages from upgrade
[l2e.git] / src / common / Capsule.h
index 5aa5f344fd6c09711f2c53f07cdc27507026e9f1..a1afc1b2c012ddd1b0647f1ff185ecffdc46e3d3 100644 (file)
@@ -9,9 +9,11 @@ namespace graphics {
        class Sprite;
 }
 
+#include "Hero.h"
 #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<Hero::UpgradeInfo> &);
+
        graphics::Sprite *BattleSprite();
        const graphics::Sprite *BattleSprite() const;
        graphics::Animation *MeleeAnimation();