-Apply door fix to hatch as well (evil code duplication here...)
[supertux.git] / src / badguy / nolok_01.h
index 61011aa..cc50d5a 100644 (file)
@@ -7,19 +7,19 @@
 class Nolok_01 : public BadGuy
 {
 public:
-  Nolok_01(LispReader& reader);
+  Nolok_01(const lisp::Lisp& reader);
   Nolok_01(float pos_x, float pos_y);
 
   void activate();
-  void write(LispWriter& writer);
+  void write(lisp::Writer& writer);
   void active_action(float elapsed_time);
   HitResponse collision_solid(GameObject& other, const CollisionHit& hit);
   
 protected:
   bool collision_squished(Player& player);
   Timer2 action_timer;
-  enum { WALKING, JUMPING, SHOOTING };
-  int action;
+  enum Actions { WALKING, JUMPING, SHOOTING };
+  Actions action;
 };
 
 #endif