Splash

Engine/source/T3D/fx/splash.h

More...

Private Types

Parent 
SplashRingList 

Protected Functions

Advances simulation time for animations.

bool

Called when the object is added to the sim.

Called when the object is removed from the sim.

Processes a move event and updates object state once every 32 milliseconds.

Public Functions

bool
onNewDataBlock(GameBaseData * dptr, bool reload)

Called when a new datablock is set.

packUpdate(NetConnection * conn, U32 mask, BitStream * stream)

Instructs this object to pack its state for transfer over the network.

Instructs this object to read state data previously packed with packUpdate.

Detailed Description

Private Types

typedef GameBase Parent 
typedef Torque::List< SplashRing > SplashRingList 

Private Attributes

LinearColorF mColor 
U32 mCurrMS 
SplashData * mDataBlock 
bool mDead 
F32 mElapsedTime 
SimObjectPtr< ParticleEmitter > mEmitterList [SplashData::NUM_EMITTERS]
U32 mEndingMS 
F32 mHeight 
F32 mRadius 
F32 mRandAngle 
F32 mTimeSinceLastRing 
F32 mVelocity 
SplashRingList ringList 

Protected Attributes

bool mActive 
S32 mDelayMS 
F32 mFade 
F32 mFog 
Point3F mInitialNormal 
Point3F mInitialPosition 

Protected Functions

advanceTime(F32 dt)

Reimplemented from: ProcessObject

createRing()

emitRings(F32 dt)

onAdd()

Reimplemented from: SceneObject

onRemove()

Reimplemented from: SceneObject

processTick(const Move * move)

Reimplemented from: ProcessObject

spawnExplosion()

updateColor()

updateEmitters(F32 dt)

updateRing(SplashRing & ring, F32 dt)

updateRings(F32 dt)

updateWave(F32 dt)

Public Functions

Splash()

~Splash()

DECLARE_CONOBJECT(Splash )

onNewDataBlock(GameBaseData * dptr, bool reload)

Reimplemented from: GameBase

packUpdate(NetConnection * conn, U32 mask, BitStream * stream)

Reimplemented from: SceneObject

setInitialState(const Point3F & point, const Point3F & normal, const F32 fade)

unpackUpdate(NetConnection * conn, BitStream * stream)

Reimplemented from: SceneObject