X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fobject%2Flevel_time.hpp;h=6d9a3a271aac2962278e32723f7e5df584a3e136;hb=75acd4b141f45e851a492f089aa9ad24a9552409;hp=98c792622bf123c9f95a7eb64be000150391aa73;hpb=cc2776a002549ae37ecf78be1333e66282780064;p=supertux.git diff --git a/src/object/level_time.hpp b/src/object/level_time.hpp index 98c792622..6d9a3a271 100644 --- a/src/object/level_time.hpp +++ b/src/object/level_time.hpp @@ -20,18 +20,21 @@ #ifndef __LEVELTIME_H__ #define __LEVELTIME_H__ -#include #include "game_object.hpp" #include "timer.hpp" #include "lisp/lisp.hpp" #include "video/surface.hpp" #include "script_interface.hpp" +#include "video/color.hpp" + +#include 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 +42,15 @@ public: void draw(DrawingContext& context); /** + * @name Scriptable Methods + * @{ + */ + + /** * Resumes the countdown */ void start(); - + /** * Pauses the countdown */ @@ -58,6 +66,10 @@ public: */ void set_time(float time_left); + /** + * @} + */ + private: std::auto_ptr time_surface; bool running;