Made badguys face right when spawning onscreen and to the left of the
[supertux.git] / src / badguy / totem.hpp
index 40b5da1..8742025 100644 (file)
@@ -1,4 +1,4 @@
-//  $Id: totem.cpp 3096 2006-03-17 12:03:02Z sommer $
+//  $Id$
 // 
 //  SuperTux - "Totem" Badguy
 //  Copyright (C) 2006 Christoph Sommer <christoph.sommer@2006.expires.deltadevelopment.de>
@@ -30,6 +30,7 @@ class Totem : public BadGuy
 {
 public:
   Totem(const lisp::Lisp& reader);
+  Totem(const Totem& totem);
   ~Totem();
 
   void activate();
@@ -38,9 +39,10 @@ public:
   HitResponse collision_solid(GameObject& other, const CollisionHit& hit);
   HitResponse collision_badguy(BadGuy& badguy, const CollisionHit& hit);
 
-protected:
-  bool stay_on_platform; /**< change direction before falling off a ledge */
+  virtual Totem* clone() const { return new Totem(*this); }
+  virtual bool updatePointers(const GameObject* from_object, GameObject* to_object);
 
+protected:
   Totem* carrying; /**< Totem we are currently carrying (or 0) */
   Totem* carried_by; /**< Totem by which we are currently carried (or 0) */