move over rewritten lispreader from tuxkart (with additional fixes), generalized...
[supertux.git] / src / badguy / bomb.h
1 #ifndef __BOMB_H__
2 #define __BOMB_H__
3
4 #include "badguy.h"
5
6 class Bomb : public BadGuy
7 {
8 public:
9   Bomb(const Vector& pos, Direction dir);
10
11   void write(lisp::Writer& writer);
12   HitResponse collision_solid(GameObject& other, const CollisionHit& hit);
13   HitResponse collision_player(Player& player, const CollisionHit& hit);
14   void active_action(float elapsed_time);
15   void kill_fall();
16
17 private:
18   int state;
19   Timer2 timer;
20 };
21
22 #endif
23