]> git.localhorst.tv Git - l2e.git/blobdiff - src/battle/Capsule.h
extracted battle logic into a class
[l2e.git] / src / battle / Capsule.h
index 8f268e18f4e74dc863b07e6b8550ce4fb33a84d0..ef4e46da07f2e342d223852087684ca8b2e1d3c7 100644 (file)
@@ -4,14 +4,18 @@
 namespace common {
        class Capsule;
 }
+namespace math {
+       template<class>
+       class Vector;
+}
 
 #include "AttackChoice.h"
 #include "../common/Stats.h"
-#include "../math/Vector.h"
 #include "../graphics/Animation.h"
-#include "../graphics/fwd.h"
 #include "../graphics/Menu.h"
 
+#include <SDL.h>
+
 namespace battle {
 
 class Capsule {
@@ -24,7 +28,7 @@ public:
 
        const char *Name() const;
        Uint8 Level() const;
-       const graphics::Sprite *Sprite();
+       const graphics::Sprite *Sprite() const;
 
        Uint16 MaxHealth() const;
        Uint16 Health() const;
@@ -62,4 +66,4 @@ private:
 
 }
 
-#endif /* BATTLE_CAPSULE_H_ */
+#endif