CrystalSpace

Public API Reference

Main Page   Modules   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

csVirtualClock Class Reference

This is an implementation of a virtual clock. More...

#include <virtclk.h>

Inheritance diagram for csVirtualClock:

iVirtualClock iBase List of all members.

Public Methods

virtual void Advance ()
 Advance the engine's virtual-time clock. More...

virtual void Suspend ()
 Suspend the engine's virtual-time clock. More...

virtual void Resume ()
 Resume the engine's virtual-time clock. More...

virtual csTicks GetElapsedTicks () const
 Query the time elapsed between the two most recent invocations of Advance(). More...

virtual csTicks GetCurrentTicks () const
 Returns the absolute time of the last call to Advance(). More...


Detailed Description

This is an implementation of a virtual clock.

Using this clock you can easily keep track of elapsed and current time in a virtual setting.

Definition at line 30 of file csutil/virtclk.h.


Member Function Documentation

virtual void csVirtualClock::Advance   [virtual]
 

Advance the engine's virtual-time clock.

Implements iVirtualClock.

virtual csTicks csVirtualClock::GetCurrentTicks   const [inline, virtual]
 

Returns the absolute time of the last call to Advance().

Implements iVirtualClock.

Definition at line 62 of file csutil/virtclk.h.

References csTicks.

virtual csTicks csVirtualClock::GetElapsedTicks   const [inline, virtual]
 

Query the time elapsed between the two most recent invocations of Advance().

Implements iVirtualClock.

Definition at line 58 of file csutil/virtclk.h.

References csTicks.

virtual void csVirtualClock::Resume   [inline, virtual]
 

Resume the engine's virtual-time clock.

Implements iVirtualClock.

Definition at line 53 of file csutil/virtclk.h.

References csTicks.

virtual void csVirtualClock::Suspend   [inline, virtual]
 

Suspend the engine's virtual-time clock.

Implements iVirtualClock.

Definition at line 49 of file csutil/virtclk.h.


The documentation for this class was generated from the following file:
Generated for Crystal Space by doxygen 1.2.14