X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fbadguy%2Fmrtree.hpp;h=4eae54948f4d0eeb73a320aeb800fb1409da02c2;hb=d84d73b701cc7fa2bd74f3490b9be1bf8b6f705a;hp=8858d4ea04b77ec14de0f5bdc1ab9e2ab7c4d540;hpb=cce29fe2e92bdaaadb826c0b366b2eb5d55a6fcf;p=supertux.git diff --git a/src/badguy/mrtree.hpp b/src/badguy/mrtree.hpp index 8858d4ea0..4eae54948 100644 --- a/src/badguy/mrtree.hpp +++ b/src/badguy/mrtree.hpp @@ -1,7 +1,7 @@ // $Id$ -// +// // SuperTux -// Copyright (C) 2005 Matthias Braun +// Copyright (C) 2006 Matthias Braun // // This program is free software; you can redistribute it and/or // modify it under the terms of the GNU General Public License @@ -12,34 +12,26 @@ // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. -// +// // You should have received a copy of the GNU General Public License // along with this program; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA -// 02111-1307, USA. +// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. -#ifndef __TOTEM_H__ -#define __TOTEM_H__ +#ifndef __MRTREE_H__ +#define __MRTREE_H__ -#include "badguy.hpp" +#include "walking_badguy.hpp" -class Totem : public BadGuy +class MrTree : public WalkingBadguy { public: - Totem(const lisp::Lisp& reader); - - void activate(); + MrTree(const lisp::Lisp& reader); 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_NORMAL - }; - MyState mystate; - bool collision_squished(Player& player); + }; #endif