- updated es.po
[supertux.git] / src / sprite.h
index 0671e27..62dba8f 100644 (file)
@@ -23,7 +23,7 @@
 #include <string>
 #include <vector>
 #include "lispreader.h"
-#include "texture.h"
+#include "screen/texture.h"
 #include "vector.h"
 
 class Sprite
@@ -56,12 +56,12 @@ class Sprite
 
   /** Update the sprite and process to the next frame */
   void update(float delta);
-  void draw(float x, float y);
-  void draw_part(float sx, float sy, float x, float y, float w, float h);
+  void draw(DrawingContext& context, const Vector& pos, int layer,
+      uint32_t drawing_effect = NONE_EFFECT);
   int get_current_frame() const;
 
-  void draw(const Vector& pos)
-  { draw(pos.x, pos.y); }
+  float get_fps() { return fps; } ;
+  int get_frames() { return surfaces.size(); } ;
 
   std::string get_name() const { return name; } 
   int get_width() const;