X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fobject%2Felectrifier.hpp;h=3ad746c2a7abf477d08b4e6ecdc10d1c1d27ad30;hb=ca967dcf4ee89f99880355be00782d1cd047be6a;hp=3cfa1b8b3ba114f28b7a0cd92211f33624be3d2e;hpb=9eb594ee1cd68e85dc97da20c17919df54079c3f;p=supertux.git diff --git a/src/object/electrifier.hpp b/src/object/electrifier.hpp index 3cfa1b8b3..3ad746c2a 100644 --- a/src/object/electrifier.hpp +++ b/src/object/electrifier.hpp @@ -1,4 +1,7 @@ +// $Id$ +// // SuperTux +// 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 @@ -9,19 +12,18 @@ // 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 __ELECTRIFIER_H__ #define __ELECTRIFIER_H__ -#include #include "resources.hpp" #include "game_object.hpp" #include "timer.hpp" +#include //Changes all tiles with the given ID to a new one for a given amount of time, then removes itself //Used by the Kugelblitz to electrify water - can be used for other effects, too @@ -30,7 +32,7 @@ class Electrifier : public GameObject public: Electrifier(uint32_t oldtile, uint32_t newtile, float seconds); ~Electrifier(); -protected: +protected: virtual void update(float time); virtual void draw(DrawingContext& context); private: @@ -40,4 +42,3 @@ private: }; #endif -