5855051c3427f00d966ff939661310839611c6d9
[supertux.git] / src / object / level_time.hpp
1 #ifndef __LEVELTIME_H__
2 #define __LEVELTIME_H__
3
4 #include "game_object.hpp"
5 #include "timer.hpp"
6 #include "lisp/lisp.hpp"
7
8 class LevelTime : public GameObject
9 {
10 public:
11     LevelTime(const lisp::Lisp& reader);
12     virtual ~LevelTime();
13
14     void update(float elapsed_time);
15     void draw(DrawingContext& context);
16     void stop();
17     float get_level_time();
18     float get_remaining_time();
19
20 private:
21     Timer time_left;
22     float final_level_time;
23     float final_remaining_time;
24 };
25
26 #endif
27