X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fbadguy%2Fmrtree.hpp;h=0b884a1ceb865e4d827e94ba723ce3953e5d39fa;hb=013a5ca196545a094f27c1b708facd0084d58d55;hp=9795a6d6bd88db6dd94f3e7f7e65643bd1d8bb37;hpb=12966e3f986f7202125ae590c74a4d0c227441dd;p=supertux.git diff --git a/src/badguy/mrtree.hpp b/src/badguy/mrtree.hpp index 9795a6d6b..0b884a1ce 100644 --- a/src/badguy/mrtree.hpp +++ b/src/badguy/mrtree.hpp @@ -20,33 +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(GameObject& object); - bool collision_squished(Player& player); - std::string direction; - bool set_direction; - Direction initial_direction; }; #endif