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