X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fobject%2Fcandle.hpp;h=ea82414a4e3391dc20b1a4b5278bb15b27086aa1;hb=08813a74da6ac1fd045a105e4e8105f1d7f716f0;hp=c82db5e31ed3996780de6add5d9f499347b51a9a;hpb=f406067af6cbeb0a638078fe1d386d092583909c;p=supertux.git diff --git a/src/object/candle.hpp b/src/object/candle.hpp index c82db5e31..ea82414a4 100644 --- a/src/object/candle.hpp +++ b/src/object/candle.hpp @@ -1,12 +1,10 @@ -// $Id$ -// // SuperTux // Copyright (C) 2006 Christoph Sommer // -// This program is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License -// as published by the Free Software Foundation; either version 2 -// of the License, or (at your option) any later version. +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. // // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of @@ -14,27 +12,22 @@ // 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. - -#ifndef __CANDLE_H__ -#define __CANDLE_H__ +// along with this program. If not, see . -#include +#ifndef HEADER_SUPERTUX_OBJECT_CANDLE_HPP +#define HEADER_SUPERTUX_OBJECT_CANDLE_HPP -#include "lisp/lisp.hpp" #include "object/moving_sprite.hpp" -#include "script_interface.hpp" -#include "video/surface.hpp" +#include "supertux/script_interface.hpp" /** * A burning candle: Simple, scriptable level decoration. */ -class Candle : public MovingSprite, public ScriptInterface +class Candle : public MovingSprite, + public ScriptInterface { public: - Candle(const lisp::Lisp& lisp); - virtual Candle* clone() const { return new Candle(*this); } + Candle(const Reader& lisp); virtual void draw(DrawingContext& context); HitResponse collision(GameObject& other, const CollisionHit& hit); @@ -61,3 +54,5 @@ private: }; #endif + +/* EOF */