4bb4d862c6a88f0b2f7c50fc4147826295afc1db
[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(LispReader& reader);
10   BouncingSnowball(float pos_x, float pos_y, Direction d);
11
12   void activate();
13   void write(LispWriter& writer);
14   HitResponse collision_solid(GameObject& other, const CollisionHit& hit);
15
16 protected:
17   bool collision_squished(Player& player);
18   bool set_direction;
19   Direction initial_direction;  
20 };
21
22 #endif
23