615156f43205391d3c2898a6acee6e70a1d08239
[supertux.git] / src / badguy / flyingsnowball.h
1 #ifndef __FLYINGSNOWBALL_H__
2 #define __FLYINGSNOWBALL_H__
3
4 #include "badguy.h"
5
6 class FlyingSnowBall : public BadGuy
7 {
8 public:
9   FlyingSnowBall(const lisp::Lisp& reader);
10   FlyingSnowBall(float pos_x, float pos_y);
11
12   void activate();
13   void write(lisp::Writer& writer);
14   void active_action(float elapsed_time);
15   HitResponse collision_solid(GameObject& other, const CollisionHit& hit);
16 protected:
17   enum FlyingSnowballMode {
18     FLY_UP,
19     FLY_DOWN
20   };
21   FlyingSnowballMode mode;
22   bool collision_squished(Player& player);
23 private:
24   Timer2 timer;
25 };
26
27 #endif
28