X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fbadguy%2Fsnowball.hpp;h=ef32818c3e0127dd1d0d9b9b5627aea61ee6ac58;hb=7a6f00e27bdc0aac2107506c3b00cbf0bf1cccc5;hp=ce642fb9cd526fa69dc65c112932d17ef729603a;hpb=4c9b57d29e67f9db5605f378549b07f670baa837;p=supertux.git diff --git a/src/badguy/snowball.hpp b/src/badguy/snowball.hpp index ce642fb9c..ef32818c3 100644 --- a/src/badguy/snowball.hpp +++ b/src/badguy/snowball.hpp @@ -20,25 +20,20 @@ #ifndef __SNOWBALL_H__ #define __SNOWBALL_H__ -#include "badguy.hpp" +#include "walking_badguy.hpp" -class SnowBall : public BadGuy +class SnowBall : public WalkingBadguy { public: SnowBall(const lisp::Lisp& reader); - SnowBall(float pos_x, float pos_y, Direction d); + SnowBall(const Vector& pos, Direction d); - void activate(); void write(lisp::Writer& writer); - HitResponse collision_solid(GameObject& other, const CollisionHit& hit); - HitResponse collision_badguy(BadGuy& other, const CollisionHit& hit); - + virtual SnowBall* clone() const { return new SnowBall(*this); } + protected: - bool collision_squished(Player& player); - bool set_direction; - Direction initial_direction; - bool fluffy; + bool collision_squished(GameObject& object); + }; #endif -