First attempts at making BadGuys cloneable
[supertux.git] / src / badguy / mrtree.hpp
index db3d019..652a00e 100644 (file)
@@ -33,6 +33,8 @@ public:
   HitResponse collision_solid(GameObject& other, const CollisionHit& hit);
   HitResponse collision_badguy(BadGuy& badguy, const CollisionHit& hit);
 
+  virtual MrTree* clone() const { return new MrTree(*this); }
+
 protected:
   enum MyState {
     STATE_BIG, STATE_INVINCIBLE, STATE_NORMAL