#include <effectmanager.h>

Public Member Functions | |
| Effect (osg::Node *node, double timeToLive) | |
| Constructor. | |
| osg::Node * | GetNode () |
| Returns the effect's OpenSceneGraph node. | |
| const osg::Node * | GetNode () const |
| void | SetTimeToLive (double timeToLive) |
| Sets the remaining lifespan of this effect. | |
| double | GetTimeToLive () |
| Returns the remaining lifespan of this effect. | |
| void | SetDying (bool dying) |
| Sets the dying flag. | |
| bool | IsDying () |
| Checks the dying flag. | |
Protected Member Functions | |
| virtual | ~Effect () |
| Destructor. | |
| dtCore::Effect::Effect | ( | osg::Node * | node, | |
| double | timeToLive | |||
| ) |
Constructor.
| node | the effect's OpenSceneGraph node | |
| timeToLive | the lifespan of the effect in seconds, or 0.0 for unlimited |
| dtCore::Effect::~Effect | ( | ) | [protected, virtual] |
Destructor.
| osg::Node * dtCore::Effect::GetNode | ( | ) |
Returns the effect's OpenSceneGraph node.
| const osg::Node * dtCore::Effect::GetNode | ( | ) | const |
| void dtCore::Effect::SetTimeToLive | ( | double | timeToLive | ) |
Sets the remaining lifespan of this effect.
| timeToLive | the remaining lifespan, in seconds, or 0.0 for unlimited |
| double dtCore::Effect::GetTimeToLive | ( | ) |
Returns the remaining lifespan of this effect.
the remaining lifespan, in seconds, or 0.0 for unlimited
| void dtCore::Effect::SetDying | ( | bool | dying | ) |
Sets the dying flag.
| dying | the new value of the dying flag |
| bool dtCore::Effect::IsDying | ( | ) |
Checks the dying flag.