nolok can be killed with fireballs now
[supertux.git] / src / badguy / nolok_01.h
1 #ifndef __NOLOK01_H__
2 #define __NOLOK01_H__
3
4 #include "badguy.h"
5 #include "timer.h"
6
7 class Nolok_01 : public BadGuy
8 {
9 public:
10   Nolok_01(const lisp::Lisp& reader);
11   Nolok_01(float pos_x, float pos_y);
12
13   void activate();
14   void write(lisp::Writer& writer);
15   void active_action(float elapsed_time);
16   void kill_fall();
17   HitResponse collision_solid(GameObject& other, const CollisionHit& hit);
18   
19 protected:
20   bool collision_squished(Player& player);
21   Timer2 action_timer;
22   enum Actions { WALKING, JUMPING, SHOOTING };
23   Actions action;
24 };
25
26 #endif
27