move over rewritten lispreader from tuxkart (with additional fixes), generalized...
[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   HitResponse collision_solid(GameObject& other, const CollisionHit& hit);
17   
18 protected:
19   bool collision_squished(Player& player);
20   Timer2 action_timer;
21   enum Actions { WALKING, JUMPING, SHOOTING };
22   Actions action;
23 };
24
25 #endif
26