]> git.localhorst.tv Git - l2e.git/blobdiff - src/battle/NumberAnimation.h
removed useless comments
[l2e.git] / src / battle / NumberAnimation.h
index 2c96b5e816d256587d3de658931ad87248aa86c5..2885d0f73e41c2e91df46c13f332e4d726eabcd5 100644 (file)
@@ -1,21 +1,15 @@
-/*
- * NumberAnimation.h
- *
- *  Created on: Aug 12, 2012
- *      Author: holy
- */
-
 #ifndef BATTLE_NUMBERANIMATION_H_
 #define BATTLE_NUMBERANIMATION_H_
 
-#include "../graphics/ComplexAnimation.h"
-
-#include "../geometry/Point.h"
-
 namespace app {
-       class Application;
        class State;
 }
+namespace math {
+       template<class>
+       class Vector;
+}
+
+#include "../graphics/Animation.h"
 
 namespace battle {
 
@@ -23,7 +17,7 @@ class NumberAnimation {
 
 public:
        NumberAnimation() : number(-1) { }
-       NumberAnimation(int number, const graphics::ComplexAnimation &prototype, const graphics::Sprite *numbers);
+       NumberAnimation(int number, const graphics::Animation *prototype, const graphics::Sprite *numbers);
 
 public:
        void Start(app::State &);
@@ -33,14 +27,14 @@ public:
        int Width() const;
        int Height() const;
 
-       void Draw(SDL_Surface *dest, const geometry::Point<int> &position) const;
+       void Draw(SDL_Surface *dest, const math::Vector<int> &position) const;
 
 private:
        int number;
-       graphics::ComplexAnimation animation[4];
+       graphics::AnimationRunner animation[4];
 
 };
 
 }
 
-#endif /* BATTLE_NUMBERANIMATION_H_ */
+#endif