Rolled back bomb to old behaviour, some bomb gfx tuning
[supertux.git] / src / badguy / root.hpp
index 32ec2fa..b3a302c 100644 (file)
 #include <memory>
 #include "badguy.hpp"
 
+class Timer;
+
 class Root : public BadGuy
 {
 public:
   Root(const Vector& pos);
   ~Root();
 
-  void activate();
   void deactivate();
   void active_update(float elapsed_time);
   virtual void draw(DrawingContext& context);
@@ -38,11 +39,12 @@ public:
 
 protected:
   enum MyState {
-    STATE_APPEARING, STATE_GROWING, STATE_SHRINKING, STATE_VANISHING
+    STATE_APPEARING, STATE_HATCHING, STATE_GROWING, STATE_SHRINKING, STATE_VANISHING
   };
   MyState mystate;
   std::auto_ptr<Sprite> base_sprite;
   float offset_y;
+  Timer hatch_timer;
 };
 
 #endif