- beginnings of a wingling
[supertux.git] / src / sprite.h
index ce5889a..0671e27 100644 (file)
@@ -24,6 +24,7 @@
 #include <vector>
 #include "lispreader.h"
 #include "texture.h"
+#include "vector.h"
 
 class Sprite
 {
@@ -59,6 +60,9 @@ class Sprite
   void draw_part(float sx, float sy, float x, float y, float w, float h);
   int get_current_frame() const;
 
+  void draw(const Vector& pos)
+  { draw(pos.x, pos.y); }
+
   std::string get_name() const { return name; } 
   int get_width() const;
   int get_height() const;