X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fbadguy%2Fflyingsnowball.hpp;h=7e78c52663f2db85e3ade92436df386e9ae234d1;hb=e7042da286e68756298cc205910b35c1da551167;hp=7762c966d45f1b702df0336e0dff408af3d0c45d;hpb=07ddaed2a657e4d2a3d038fed223fc5827159caf;p=supertux.git diff --git a/src/badguy/flyingsnowball.hpp b/src/badguy/flyingsnowball.hpp index 7762c966d..7e78c5266 100644 --- a/src/badguy/flyingsnowball.hpp +++ b/src/badguy/flyingsnowball.hpp @@ -26,12 +26,15 @@ class FlyingSnowBall : public BadGuy { public: FlyingSnowBall(const lisp::Lisp& reader); - FlyingSnowBall(float pos_x, float pos_y); + FlyingSnowBall(const Vector& pos); void activate(); void write(lisp::Writer& writer); void active_update(float elapsed_time); - HitResponse collision_solid(GameObject& other, const CollisionHit& hit); + void collision_solid(const CollisionHit& hit); + + virtual FlyingSnowBall* clone() const { return new FlyingSnowBall(*this); } + protected: enum FlyingSnowballMode { FLY_UP, @@ -41,6 +44,7 @@ protected: bool collision_squished(Player& player); private: Timer timer; + Timer puff_timer; /**< time until the next smoke puff is spawned */ }; #endif