X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fobject%2Fskull_tile.hpp;h=5a65798338b785a368853ba92e0bf319668c30bb;hb=4587bd9c8fc5cbb20f1e442de76bc06571ab56ba;hp=fc7af6d3e90f5f29c93e62452b034b30fb830fa3;hpb=737a97b08201d5799857bc71faab73689d705846;p=supertux.git diff --git a/src/object/skull_tile.hpp b/src/object/skull_tile.hpp index fc7af6d3e..5a6579833 100644 --- a/src/object/skull_tile.hpp +++ b/src/object/skull_tile.hpp @@ -1,7 +1,7 @@ -// $Id: unstable_tile.hpp 2642 2005-06-26 13:38:53Z matzebraun $ -// +// $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,40 +12,36 @@ // 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 __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 -