X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fobject%2Fskull_tile.hpp;h=5a65798338b785a368853ba92e0bf319668c30bb;hb=4587bd9c8fc5cbb20f1e442de76bc06571ab56ba;hp=86afb1dccbae57fe6d92b0306506b13c455f361d;hpb=07ddaed2a657e4d2a3d038fed223fc5827159caf;p=supertux.git diff --git a/src/object/skull_tile.hpp b/src/object/skull_tile.hpp index 86afb1dcc..5a6579833 100644 --- a/src/object/skull_tile.hpp +++ b/src/object/skull_tile.hpp @@ -20,32 +20,28 @@ #ifndef __SKULL_TILE_H__ #define __SKULL_TILE_H__ -#include "moving_object.hpp" +#include "object/moving_sprite.hpp" #include "lisp/lisp.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 -