X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fbadguy%2Fbouncing_snowball.h;h=63afe0545a4ab94bde5908641282e351afbcb85d;hb=16ed8c7ce29177a68fbf64d4cfc03739ae75c094;hp=7aea25dae73a3329641bd0c888c71e40789a9384;hpb=3f1a54cc4a2b8deb8ebb31061a00ffcec5fb3169;p=supertux.git diff --git a/src/badguy/bouncing_snowball.h b/src/badguy/bouncing_snowball.h index 7aea25dae..63afe0545 100644 --- a/src/badguy/bouncing_snowball.h +++ b/src/badguy/bouncing_snowball.h @@ -6,15 +6,18 @@ class BouncingSnowball : public BadGuy { public: - BouncingSnowball(LispReader& reader); - BouncingSnowball(float pos_x, float pos_y); + BouncingSnowball(const lisp::Lisp& reader); + BouncingSnowball(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& badguy, const CollisionHit& hit); protected: bool collision_squished(Player& player); + bool set_direction; + Direction initial_direction; }; #endif