projects
/
supertux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Rolled back bomb to old behaviour, some bomb gfx tuning
[supertux.git]
/
src
/
badguy
/
mrtree.hpp
diff --git
a/src/badguy/mrtree.hpp
b/src/badguy/mrtree.hpp
index
8253a21
..
0b884a1
100644
(file)
--- a/
src/badguy/mrtree.hpp
+++ b/
src/badguy/mrtree.hpp
@@
-20,29
+20,18
@@
#ifndef __MRTREE_H__
#define __MRTREE_H__
#ifndef __MRTREE_H__
#define __MRTREE_H__
-#include "badguy.hpp"
+#include "
walking_
badguy.hpp"
-class MrTree : public
BadG
uy
+class MrTree : public
WalkingBadg
uy
{
public:
MrTree(const lisp::Lisp& reader);
{
public:
MrTree(const lisp::Lisp& reader);
-
- void activate();
- void active_update(float elapsed_time);
void write(lisp::Writer& writer);
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:
protected:
- enum MyState {
- STATE_BIG, STATE_INVINCIBLE, STATE_NORMAL
- };
- MyState mystate;
- bool stay_on_platform;
-
- Timer invincible_timer;
+ bool collision_squished(GameObject& object);
- bool collision_squished(Player& player);
};
#endif
};
#endif