#include <level_time.hpp>
Public Member Functions | |
LevelTime (_LevelTime *level_time) | |
~LevelTime () | |
void | start () |
Resumes the countdown. | |
void | stop () |
Pauses the countdown. | |
float | get_time () |
Returns the number of seconds left on the clock. | |
void | set_time (float time_left) |
Changes the number of seconds left on the clock. | |
Public Attributes | |
_LevelTime * | level_time |
Private Member Functions | |
LevelTime (const LevelTime &) | |
LevelTime & | operator= (const LevelTime &) |
Definition at line 27 of file level_time.hpp.
scripting::LevelTime::LevelTime | ( | _LevelTime * | level_time | ) |
LevelTime::~LevelTime | ( | ) |
scripting::LevelTime::LevelTime | ( | const LevelTime & | ) | [private] |
void LevelTime::start | ( | ) |
Resumes the countdown.
Definition at line 31 of file level_time.cpp.
References LevelTime::start().
Referenced by scripting::wrapper::LevelTime_start_wrapper().
00032 { 00033 level_time->start(); 00034 }
void LevelTime::stop | ( | ) |
Pauses the countdown.
Definition at line 36 of file level_time.cpp.
References LevelTime::stop().
Referenced by scripting::wrapper::LevelTime_stop_wrapper().
00037 { 00038 level_time->stop(); 00039 }
float LevelTime::get_time | ( | ) |
Returns the number of seconds left on the clock.
Definition at line 41 of file level_time.cpp.
References LevelTime::get_time().
Referenced by scripting::wrapper::LevelTime_get_time_wrapper().
00042 { 00043 return level_time->get_time(); 00044 }
void LevelTime::set_time | ( | float | time_left | ) |
Changes the number of seconds left on the clock.
Definition at line 46 of file level_time.cpp.
References LevelTime::set_time().
Referenced by scripting::wrapper::LevelTime_set_time_wrapper().
00047 { 00048 level_time->set_time(time_left); 00049 }
Definition at line 56 of file level_time.hpp.