Magic Blocks. (DrawingContext::get_light is not working yet.)
[supertux.git] / src / object / level_time.hpp
index 928fee8..b96709a 100644 (file)
 #ifndef __LEVELTIME_H__
 #define __LEVELTIME_H__
 
+#include <memory>
 #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();
-    float get_level_time();
-    float get_remaining_time();
 
 private:
-    Timer time_left;
-    float final_level_time;
-    float final_remaining_time;
+    std::auto_ptr<Surface> time_surface;
+    bool running;
+    float time_left;
 };
 
 #endif
-