VR-Forces 4.3 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
List of all members | Public Member Functions | Protected Types | Protected Attributes
makVrv::DtTickableManager Class Reference

A base class for managers of DtTickable objects. More...

Inheritance diagram for makVrv::DtTickableManager:
Inheritance graph
[legend]

Public Member Functions

 DtTickableManager ()
 CTOR.
virtual ~DtTickableManager ()
 DTOR.
virtual bool addTickableObject (DtTickable *ticObj)
 Add a DtTickable object to this manager.
virtual void removeTickableObject (DtTickable *ticObj)
 Remove a DtTickable object from this manager.
virtual void tick (DtTime tNow=0.0)
 Function to update each tick-able object.
- Public Member Functions inherited from makVrv::DtTickableManagerInterface
virtual ~DtTickableManagerInterface ()
 Virtual DTOR.

Protected Types

typedef std::vector< DtTickable * > TickableList

Protected Attributes

TickableList myTickables
bool myOnTickFlag

Detailed Description

A base class for managers of DtTickable objects.

Member Typedef Documentation

typedef std::vector<DtTickable*> makVrv::DtTickableManager::TickableList
protected

Constructor & Destructor Documentation

makVrv::DtTickableManager::DtTickableManager ( )

CTOR.

virtual makVrv::DtTickableManager::~DtTickableManager ( )
virtual

DTOR.

Member Function Documentation

virtual bool makVrv::DtTickableManager::addTickableObject ( DtTickable ticObj)
virtual

Add a DtTickable object to this manager.

Parameters
[in]ticObjis a pointer to a tick-able object to add.
Return values
trueif the pointer was successfully added.
falseotherwise.
Note
Objects added to this manager are not destroyed at destruction time of this manager.
Exceptions
DtCorruptedStateif called during tick-update.

Implements makVrv::DtTickableManagerInterface.

virtual void makVrv::DtTickableManager::removeTickableObject ( DtTickable ticObj)
virtual

Remove a DtTickable object from this manager.

Parameters
[in]ticObjis a pointer to a tick-able object to remove.
Exceptions
DtCorruptedStateif called during tick-update.

Implements makVrv::DtTickableManagerInterface.

virtual void makVrv::DtTickableManager::tick ( DtTime  tNow = 0.0)
virtual

Function to update each tick-able object.

Each tick-able object receives a call to its update() function if its needsUpdate() function returns true.

Parameters
[in]tNowis a time-stamp to pass to each object.
Note
The order objects are updated is not guaranteed.

Implements makVrv::DtTickableManagerInterface.

Member Data Documentation

TickableList makVrv::DtTickableManager::myTickables
protected
bool makVrv::DtTickableManager::myOnTickFlag
protected

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

Document ID: Generated on Wed Mar 11 21:20:57 EDT 2015 from SVN revision 150940
Copyright © 2005-2014 VT MÄK. All Rights Reserved (www.mak.com)