dtCore::Detonation Class Reference

A detonation effect. More...

#include <effectmanager.h>

Inheritance diagram for dtCore::Detonation:

dtCore::Effect

List of all members.

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)
TransformableGetParent ()
 Returns the Transformable parent of the detonation, or 0 if the detonation is unparented.
const TransformableGetParent () const


Detailed Description

A detonation effect.

Constructor & Destructor Documentation

dtCore::Detonation::Detonation ( osg::Node *  node,
double  timeToLive,
const osg::Vec3 &  position,
const std::string &  detonationName,
Transformable parent 
)

Constructor.

Parameters:
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


Member Function Documentation

void dtCore::Detonation::GetPosition ( osg::Vec3 &  result  )  const

Retrieves the position of this detonation.

Parameters:
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.

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.

Returns:
the parent of the detonation

const Transformable * dtCore::Detonation::GetParent (  )  const


http://www.delta3d.org
2.0.0 generated 14 Feb 2008