Changed Yeti behaviour. You must stun him (jump on him) when is under a falling stala...
[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   HitResponse collision_badguy(BadGuy& badguy, const CollisionHit& hit);
15   void active_action(float elapsed_time);
16   void kill_fall();
17   void explode();
18
19 private:
20   int state;
21   Timer2 timer;
22 };
23
24 #endif
25