scripting::LevelTime Class Reference

#include <level_time.hpp>

List of all members.

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

_LevelTimelevel_time

Private Member Functions

 LevelTime (const LevelTime &)
LevelTimeoperator= (const LevelTime &)


Detailed Description

Definition at line 27 of file level_time.hpp.


Constructor & Destructor Documentation

scripting::LevelTime::LevelTime ( _LevelTime level_time  ) 

LevelTime::~LevelTime (  ) 

Definition at line 28 of file level_time.cpp.

00029 { }

scripting::LevelTime::LevelTime ( const LevelTime  )  [private]


Member Function Documentation

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 }

LevelTime& scripting::LevelTime::operator= ( const LevelTime  )  [private]


Member Data Documentation

_LevelTime* scripting::LevelTime::level_time

Definition at line 56 of file level_time.hpp.


The documentation for this class was generated from the following files:
Generated on Mon Apr 21 03:38:34 2014 for SuperTux by  doxygen 1.5.1