added MrRocket badguy and added him to the Dispenser.
[supertux.git] / src / badguy / bouncing_snowball.h
1 #ifndef __BOUNCING_SNOWBALL_H__
2 #define __BOUNCING_SNOWBALL_H__
3
4 #include "badguy.h"
5
6 class BouncingSnowball : public BadGuy
7 {
8 public:
9   BouncingSnowball(const lisp::Lisp& reader);
10   BouncingSnowball(float pos_x, float pos_y, Direction d);
11
12   void activate();
13   void write(lisp::Writer& writer);
14   HitResponse collision_solid(GameObject& other, const CollisionHit& hit);
15   HitResponse collision_badguy(BadGuy& badguy, const CollisionHit& hit);
16
17 protected:
18   bool collision_squished(Player& player);
19   bool set_direction;
20   Direction initial_direction;  
21 };
22
23 #endif
24