StartUpTimer Class Reference

A label that displays the time since SDL start. This label reads "StartUp time: xxxx.x s". More...

#include <StartUpTimer.h>

Inheritance diagram for StartUpTimer:

Label Object2d ViewObject Object

List of all members.

Public Member Functions

 StartUpTimer (const string &fontname, const GLfloat &size, const Color &color)
 Enhanced constructor.
void updateTimer ()
 Reads game timer.
void renderGl ()
 Renders the Timer.
virtual string toString () const
 Returns a textual representation.
virtual string className () const
 Returns the class name of the object.
virtual enum classId classId () const
 Returns the class id of the object.

Private Attributes

Uint32 startUpTime
 Stores the time in ms of the last.


Detailed Description

A label that displays the time since SDL start. This label reads "StartUp time: xxxx.x s".

Constructor & Destructor Documentation

StartUpTimer::StartUpTimer ( const string &  fontname,
const GLfloat &  size,
const Color color 
)

Enhanced constructor.


Member Function Documentation

void StartUpTimer::updateTimer (  ) 

Reads game timer.

void StartUpTimer::renderGl (  )  [virtual]

Renders the Timer.

Reimplemented from Label.

string StartUpTimer::toString (  )  const [virtual]

Returns a textual representation.

Returns:
a string descriping the run-time object

Reimplemented from Label.

string StartUpTimer::className (  )  const [virtual]

Returns the class name of the object.

Returns:
a string with the name of the object's class

Reimplemented from Label.

enum classId StartUpTimer::classId (  )  const [virtual]

Returns the class id of the object.

Returns:
an id of the object's class

Reimplemented from Label.


Member Data Documentation

Uint32 StartUpTimer::startUpTime [private]

Stores the time in ms of the last.


The documentation for this class was generated from the following files:

Generated on Mon Jul 7 13:30:35 2008 for Firefly by  doxygen 1.5.6