X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fobject%2Felectrifier.hpp;h=3ad746c2a7abf477d08b4e6ecdc10d1c1d27ad30;hb=5745d9670262c91e6cd35363fd0d2ec169e7c8a4;hp=cc6a7a005861465de83d8a96ae7bd2503bbc4d33;hpb=9890da50f82d286c67e72feefcc423d1bc9076c3;p=supertux.git diff --git a/src/object/electrifier.hpp b/src/object/electrifier.hpp index cc6a7a005..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,17 +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 "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 @@ -28,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: @@ -38,4 +42,3 @@ private: }; #endif -