Added default and cancel button to the Dialog
[supertux.git] / src / object / level_time.hpp
index 36b9870..9e4d5aa 100644 (file)
 #include "supertux/script_interface.hpp"
 #include "util/reader_fwd.hpp"
 #include "video/color.hpp"
+#include "video/surface_ptr.hpp"
 
-class Surface;
-
-class LevelTime : public GameObject, 
+class LevelTime : public GameObject,
                   public ScriptInterface
 {
   static Color text_color;
@@ -69,7 +68,7 @@ public:
    */
 
 private:
-  std::auto_ptr<Surface> time_surface;
+  SurfacePtr time_surface;
   bool running;
   float time_left;
 };