bool is_portable() const;
void freeze();
+ void unfreeze();
bool is_freezable() const;
- virtual MrBomb* clone() const { return new MrBomb(*this); }
+ void explode();
protected:
- bool collision_squished(Player& player);
+ enum State {
+ STATE_IDLE,
+ STATE_TICKING
+ };
+
+ State state;
+ std::auto_ptr<SoundSource> ticking;
+ Timer ticking_timer;
+
+ bool collision_squished(GameObject& object);
private:
bool grabbed;