Finally!!
[supertux.git] / src / badguy.h
index f5c93af..c95d706 100644 (file)
 #include "texture.h"
 #include "physic.h"
 #include "collision.h"
+#include "sprite.h"
 
-extern Surface* img_bsod_left[4];
-extern Surface* img_bsod_right[4];
-extern Surface* img_laptop_left[4];
-extern Surface* img_money_left[2];
+extern Sprite* img_bsod_left;
+extern Sprite* img_bsod_right;
+extern Sprite* img_laptop_left;
 
 /* Enemy modes: */
 enum {
@@ -99,8 +99,9 @@ private:
   Timer timer;
   Physic physic;
 
-  Surface** texture_left;
-  Surface** texture_right;
+  Sprite*   sprite_left;
+  Sprite*   sprite_right;
+
   int animation_offset;
   size_t animation_length;
   float animation_speed;
@@ -154,7 +155,7 @@ private:
   /** squish ourself, give player score and set dying to DYING_SQICHED */
   void squish_me(Player* player);
   /** set image of the badguy */
-  void set_texture(Surface** left, Surface** right,
+  void set_sprite(Sprite* left, Sprite* right,
         int animlength = 1, float animspeed = 1);
 };