X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fbadguy%2Fmrtree.hpp;h=4eae54948f4d0eeb73a320aeb800fb1409da02c2;hb=d84d73b701cc7fa2bd74f3490b9be1bf8b6f705a;hp=db3d019ba527d81345afd1b7abedfe151b8830f3;hpb=4c9b57d29e67f9db5605f378549b07f670baa837;p=supertux.git diff --git a/src/badguy/mrtree.hpp b/src/badguy/mrtree.hpp index db3d019ba..4eae54948 100644 --- a/src/badguy/mrtree.hpp +++ b/src/badguy/mrtree.hpp @@ -20,28 +20,18 @@ #ifndef __MRTREE_H__ #define __MRTREE_H__ -#include "badguy.hpp" +#include "walking_badguy.hpp" -class MrTree : public BadGuy +class MrTree : public WalkingBadguy { public: MrTree(const lisp::Lisp& reader); - - void activate(); - void active_update(float elapsed_time); void write(lisp::Writer& writer); - 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 - }; - MyState mystate; - - Timer invincible_timer; - bool collision_squished(Player& player); + }; #endif