X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fbadguy%2Fmrtree.hpp;h=652a00e6bdb09cd16eecafc467c8e7b9b0b8c425;hb=7c2f8e23f9accd00bd9ee2319da8ab8aa341c7cf;hp=db3d019ba527d81345afd1b7abedfe151b8830f3;hpb=4c9b57d29e67f9db5605f378549b07f670baa837;p=supertux.git diff --git a/src/badguy/mrtree.hpp b/src/badguy/mrtree.hpp index db3d019ba..652a00e6b 100644 --- a/src/badguy/mrtree.hpp +++ b/src/badguy/mrtree.hpp @@ -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