Applied sound pre-loading patch from mathnerd314 (#331)
[supertux.git] / src / badguy / mrbomb.hpp
index 14f326d..4f28ce6 100644 (file)
@@ -41,11 +41,21 @@ public:
   bool is_portable() const;
 
   void freeze();
+  void unfreeze();
   bool is_freezable() const;
 
-  virtual MrBomb* clone() const { return new MrBomb(*this); }
+  void explode();
 
 protected:
+  enum State {
+    STATE_IDLE,
+    STATE_TICKING
+  };
+
+  State state;
+  std::auto_ptr<SoundSource> ticking;
+  Timer ticking_timer;
+
   bool collision_squished(GameObject& object);
 
 private: