X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fbadguy%2Fplant.hpp;h=ab0dfd5bb8a274f4e38e3014f17601e80faf83e6;hb=7d24ccd38a1aa858e96b238027594d91081daaa1;hp=49755fd1d2c342d9ed7dc04a85345235fe2c366a;hpb=07ddaed2a657e4d2a3d038fed223fc5827159caf;p=supertux.git diff --git a/src/badguy/plant.hpp b/src/badguy/plant.hpp index 49755fd1d..ab0dfd5bb 100644 --- a/src/badguy/plant.hpp +++ b/src/badguy/plant.hpp @@ -33,6 +33,8 @@ public: HitResponse collision_badguy(BadGuy& badguy, const CollisionHit& hit); void active_update(float elapsed_time); + virtual Plant* clone() const { return new Plant(*this); } + protected: Timer timer;