X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fbadguy%2Fsnowball.h;h=172aac9abe044eb87ff0b59ee7de8df0e6f9519a;hb=7bbb0ef907ebec48718560425a0147b31307f7fd;hp=99a65d651017c22b71b32be259267c0c83beaf17;hpb=d46c78c842ab4090a3f46e560c891234167f124b;p=supertux.git diff --git a/src/badguy/snowball.h b/src/badguy/snowball.h index 99a65d651..172aac9ab 100644 --- a/src/badguy/snowball.h +++ b/src/badguy/snowball.h @@ -6,14 +6,18 @@ class SnowBall : public BadGuy { public: - SnowBall(LispReader& reader); + SnowBall(const lisp::Lisp& reader); + SnowBall(float pos_x, float pos_y, Direction d); void activate(); - void write(LispWriter& writer); + void write(lisp::Writer& writer); HitResponse collision_solid(GameObject& other, const CollisionHit& hit); + HitResponse collision_badguy(BadGuy& other, const CollisionHit& hit); protected: bool collision_squished(Player& player); + bool set_direction; + Direction initial_direction; }; #endif