#include <effectmanager.h>

Public Member Functions | |
| Detonation (osg::Node *node, double timeToLive, const osg::Vec3 &position, const std::string &detonationName, Transformable *parent) | |
| Constructor. | |
| void | GetPosition (osg::Vec3 &res) const |
| Retrieves the position of this detonation. | |
| const osg::Vec3 & | GetPosition () const |
| const std::string & | GetType () |
| Returns the type of this detonation. | |
| void | GetType (DetonationType &detonationType) |
| Transformable * | GetParent () |
| Returns the Transformable parent of the detonation, or 0 if the detonation is unparented. | |
| const Transformable * | GetParent () const |
| dtCore::Detonation::Detonation | ( | osg::Node * | node, | |
| double | timeToLive, | |||
| const osg::Vec3 & | position, | |||
| const std::string & | detonationName, | |||
| Transformable * | parent | |||
| ) |
Constructor.
| node | the particle system node | |
| timeToLive | the lifespan of the detonation, or 0.0 for unlimited | |
| position | the position of the detonation | |
| type | the type of the detonation | |
| parent | the parent of the detonation, or NULL for none | |
| node | the particle system node | |
| timeToLive | the lifespan of the detonation, or 0.0 for unlimited | |
| position | the position of the detonation | |
| detonationName | the name of the detonation | |
| parent | the parent of the detonation, or 0 for none |
| void dtCore::Detonation::GetPosition | ( | osg::Vec3 & | result | ) | const |
Retrieves the position of this detonation.
| result | a vector to hold the result |
| const osg::Vec3 & dtCore::Detonation::GetPosition | ( | ) | const |
| const std::string & dtCore::Detonation::GetType | ( | ) |
Returns the type of this detonation.
| void dtCore::Detonation::GetType | ( | DetonationType & | detonationType | ) |
| Transformable * dtCore::Detonation::GetParent | ( | ) |
Returns the Transformable parent of the detonation, or 0 if the detonation is unparented.
| const Transformable * dtCore::Detonation::GetParent | ( | ) | const |