X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fobject%2Flevel_time.hpp;h=348bd9ce4b9a47b1845d9c764dfbdd7af22c4b12;hb=555d1b7bebb45326d82d934e07463209837309b0;hp=98c792622bf123c9f95a7eb64be000150391aa73;hpb=cc2776a002549ae37ecf78be1333e66282780064;p=supertux.git diff --git a/src/object/level_time.hpp b/src/object/level_time.hpp index 98c792622..348bd9ce4 100644 --- a/src/object/level_time.hpp +++ b/src/object/level_time.hpp @@ -26,12 +26,14 @@ #include "lisp/lisp.hpp" #include "video/surface.hpp" #include "script_interface.hpp" +#include "video/color.hpp" class LevelTime : public GameObject, public ScriptInterface { + static Color text_color; public: LevelTime(const lisp::Lisp& reader); - + virtual void expose(HSQUIRRELVM vm, SQInteger table_idx); virtual void unexpose(HSQUIRRELVM vm, SQInteger table_idx); @@ -39,10 +41,15 @@ public: void draw(DrawingContext& context); /** + * @name Scriptable Methods + * @{ + */ + + /** * Resumes the countdown */ void start(); - + /** * Pauses the countdown */ @@ -58,6 +65,10 @@ public: */ void set_time(float time_left); + /** + * @} + */ + private: std::auto_ptr time_surface; bool running;