ExplosionRingRenderer Class Reference

#include <ExplosionRingRenderer.h>

Inheritance diagram for ExplosionRingRenderer:

MetaActionRenderer ActionRenderer MetaClass

List of all members.

Public Member Functions

 ExplosionRingRenderer ()
virtual ~ExplosionRingRenderer ()
virtual void init (unsigned int playerId, Vector &position, Vector &velocity, const char *data)
virtual void draw (Action *action)
virtual void simulate (Action *action, float frameTime, bool &remove)
 REGISTER_CLASS_HEADER (ExplosionRingRenderer)

Private Attributes

Vector position_
std::string data_


Detailed Description

Definition at line 27 of file ExplosionRingRenderer.h.


Constructor & Destructor Documentation

ExplosionRingRenderer::ExplosionRingRenderer (  ) 

Definition at line 31 of file ExplosionRingRenderer.cpp.

ExplosionRingRenderer::~ExplosionRingRenderer (  )  [virtual]

Definition at line 35 of file ExplosionRingRenderer.cpp.


Member Function Documentation

void ExplosionRingRenderer::init ( unsigned int  playerId,
Vector position,
Vector velocity,
const char *  data 
) [virtual]

Implements MetaActionRenderer.

Definition at line 39 of file ExplosionRingRenderer.cpp.

References data_, and position_.

void ExplosionRingRenderer::draw ( Action action  )  [virtual]

Implements ActionRenderer.

Definition at line 46 of file ExplosionRingRenderer.cpp.

void ExplosionRingRenderer::simulate ( Action action,
float  frameTime,
bool &  remove 
) [virtual]

Reimplemented from ActionRenderer.

Definition at line 50 of file ExplosionRingRenderer.cpp.

References data_, VirtualSoundPriority::eAction, ParticleEmitter::emitExplosionRing(), Sound::fetchOrCreateBuffer(), S3D::getDataFile(), ParticleRendererQuads::getInstance(), ScorchedClient::instance(), Sound::instance(), SoundUtils::playAbsoluteSound(), position_, ParticleEmitter::setAttributes(), and LangStringUtil::strcmp().

ExplosionRingRenderer::REGISTER_CLASS_HEADER ( ExplosionRingRenderer   ) 


Member Data Documentation

Vector ExplosionRingRenderer::position_ [private]

Definition at line 42 of file ExplosionRingRenderer.h.

Referenced by init(), and simulate().

std::string ExplosionRingRenderer::data_ [private]

Definition at line 43 of file ExplosionRingRenderer.h.

Referenced by init(), and simulate().


The documentation for this class was generated from the following files:
Generated on Mon Feb 16 15:15:01 2009 for Scorched3D by  doxygen 1.5.3