move over rewritten lispreader from tuxkart (with additional fixes), generalized...
[supertux.git] / src / badguy / snowball.h
1 #ifndef __SNOWBALL_H__
2 #define __SNOWBALL_H__
3
4 #include "badguy.h"
5
6 class SnowBall : public BadGuy
7 {
8 public:
9   SnowBall(const lisp::Lisp& reader);
10   SnowBall(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   
16 protected:
17   bool collision_squished(Player& player);
18   bool set_direction;
19   Direction initial_direction;  
20 };
21
22 #endif
23