Fix music not properly fading in again
[supertux.git] / src / object / icecrusher.hpp
index 0080937..1b38448 100644 (file)
@@ -18,6 +18,7 @@
 #define HEADER_SUPERTUX_OBJECT_ICECRUSHER_HPP
 
 #include "object/moving_sprite.hpp"
+#include "supertux/physic.hpp"
 
 class Player;
 
@@ -33,11 +34,14 @@ public:
   virtual HitResponse collision(GameObject& other, const CollisionHit& hit);
   virtual void collision_solid(const CollisionHit& hit);
   virtual void update(float elapsed_time);
+  virtual void draw(DrawingContext& context);
 
+#if 0
   const Vector& get_speed() const
   {
     return speed;
   }
+#endif
 
 protected:
   enum IceCrusherState {
@@ -47,12 +51,24 @@ protected:
   };
   IceCrusherState state;
   Vector start_position;
-  Vector speed;
+  Physic physic;
+  float cooldown_timer;
 
   Player* get_nearest_player();
   bool found_victim();
   void set_state(IceCrusherState state, bool force = false);
+  Vector eye_position(bool right);
+
+  SpritePtr lefteye;
+  SpritePtr righteye;
+  SpritePtr whites;
 
+private:
+  enum IceCrusherSize {
+    NORMAL,
+    LARGE
+  };
+  IceCrusherSize ic_size;
 };
 
 #endif