X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fobject%2Fskull_tile.hpp;h=50c38e335c7dd70efc4ad09625d5030ecb7d7e69;hb=7e15c4f871809033278711a6e9327616da00c4c9;hp=86afb1dccbae57fe6d92b0306506b13c455f361d;hpb=07ddaed2a657e4d2a3d038fed223fc5827159caf;p=supertux.git diff --git a/src/object/skull_tile.hpp b/src/object/skull_tile.hpp index 86afb1dcc..50c38e335 100644 --- a/src/object/skull_tile.hpp +++ b/src/object/skull_tile.hpp @@ -20,32 +20,27 @@ #ifndef __SKULL_TILE_H__ #define __SKULL_TILE_H__ -#include "moving_object.hpp" -#include "lisp/lisp.hpp" +#include "object/moving_sprite.hpp" #include "physic.hpp" #include "timer.hpp" -class Sprite; class Player; /** A tile that starts falling down if tux stands to long on it */ -class SkullTile : public MovingObject +class SkullTile : public MovingSprite, private UsesPhysic { public: SkullTile(const lisp::Lisp& lisp); - ~SkullTile(); + virtual SkullTile* clone() const { return new SkullTile(*this); } HitResponse collision(GameObject& other, const CollisionHit& hit); void update(float elapsed_time); void draw(DrawingContext& context); private: - Physic physic; - Sprite* sprite; Timer timer; bool hit; bool falling; }; #endif -