X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fobject%2Flevel_time.hpp;h=b96709adc971f44c6919b8f153caa8dd45b31263;hb=ab9eab4c870195c2b60ce76b77044c35b31e8806;hp=0a6e1b3afd7db0e107b26a793ac9ffd6bdae4600;hpb=5b7f9214cb929399f1a855ef5807018a9447d510;p=supertux.git diff --git a/src/object/level_time.hpp b/src/object/level_time.hpp index 0a6e1b3af..b96709adc 100644 --- a/src/object/level_time.hpp +++ b/src/object/level_time.hpp @@ -1,22 +1,44 @@ +// $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 +// as published by the Free Software Foundation; either version 2 +// 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 +// 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. + #ifndef __LEVELTIME_H__ #define __LEVELTIME_H__ +#include #include "game_object.hpp" #include "timer.hpp" #include "lisp/lisp.hpp" +#include "video/surface.hpp" class LevelTime : public GameObject { public: LevelTime(const lisp::Lisp& reader); - virtual ~LevelTime(); void update(float elapsed_time); void draw(DrawingContext& context); + void stop(); private: - Timer time_left; + std::auto_ptr time_surface; + bool running; + float time_left; }; #endif -