Don't show selection cursor when help is being displayed.
[supertux.git] / src / sprite.h
index dcd4b72..ce5889a 100644 (file)
@@ -28,6 +28,8 @@
 class Sprite
 {
  private:
+  std::string name;
+
   int x_hotspot;
   int y_hotspot;
 
@@ -40,21 +42,30 @@ class Sprite
 
   float time;
 
-  std::vector<texture_type> surfaces;
+  std::vector<Surface*> surfaces;
 
   void init_defaults();
  public:
   /** cur has to be a pointer to data in the form of ((x-hotspot 5)
       (y-hotspot 10) ...) */
   Sprite(lisp_object_t* cur);
+  ~Sprite();
+  
+  void reset();
 
   /** Update the sprite and process to the next frame */
   void update(float delta);
-  void draw(int x, int y);
+  void draw(float x, float y);
+  void draw_part(float sx, float sy, float x, float y, float w, float h);
+  int get_current_frame() const;
+
+  std::string get_name() const { return name; } 
+  int get_width() const;
+  int get_height() const;
 };
 
 #endif
 
 /* Local Variables: */
 /* mode:c++ */
-/* End */
+/* End: */