X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fbadguy%2Ftotem.hpp;h=8742025142e80396024fe6940c6607a5e49cd16f;hb=8a598e8d635ee4d629371493fef50826a38cd20d;hp=f64e0985b5869a9e580abf77d64a22f59ffccb4d;hpb=4c9b57d29e67f9db5605f378549b07f670baa837;p=supertux.git diff --git a/src/badguy/totem.hpp b/src/badguy/totem.hpp index f64e0985b..874202514 100644 --- a/src/badguy/totem.hpp +++ b/src/badguy/totem.hpp @@ -30,6 +30,7 @@ class Totem : public BadGuy { public: Totem(const lisp::Lisp& reader); + Totem(const Totem& totem); ~Totem(); void activate(); @@ -38,6 +39,9 @@ public: HitResponse collision_solid(GameObject& other, const CollisionHit& hit); HitResponse collision_badguy(BadGuy& badguy, const CollisionHit& hit); + 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) */