Made badguys face right when spawning onscreen and to the left of the
[supertux.git] / src / badguy / nolok_01.hpp
index 45a93bd..460d05e 100644 (file)
@@ -27,14 +27,16 @@ class Nolok_01 : public BadGuy
 {
 public:
   Nolok_01(const lisp::Lisp& reader);
-  Nolok_01(float pos_x, float pos_y);
+  Nolok_01(const Vector& pos);
 
   void activate();
   void write(lisp::Writer& writer);
   void active_update(float elapsed_time);
   void kill_fall();
   HitResponse collision_solid(GameObject& other, const CollisionHit& hit);
-  
+  virtual Nolok_01* clone() const { return new Nolok_01(*this); }
+
 protected:
   bool collision_squished(Player& player);
   Timer action_timer;