Lightning

Engine/source/T3D/fx/lightning.h

More...

Classes:

Private Types

Parent 

Private Attributes

Protected Static Attributes

Protected Functions

Advances simulation time for animations.

DECLARE_CALLBACK(void , applyDamage , (const Point3F &hitPosition, const Point3F &hitNormal, SceneObject *hitObject) )

Interpolates between tick events.

bool

Called when the object is added to the sim.

bool
onNewDataBlock(GameBaseData * dptr, bool reload)

Called when a new datablock is set.

Called when the object is removed from the sim.

Called when the SceneManager is ready for the registration of render instances.

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

Public Functions

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.

Public Static Functions

Detailed Description

Private Types

typedef GameBase Parent 

Public Attributes

F32 boltStartRadius 
F32 chanceToHitTarget 
LinearColorF color 
LinearColorF fadeColor 
GFXStateBlockRef mLightningSB 
F32 strikeRadius 
U32 strikesPerMinute 
F32 strikeWidth 
bool useFog 

Private Attributes

LightningData * mDataBlock 

Protected Attributes

U32 mLastThink 
Strike * mStrikeListHead 
Thunder * mThunderListHead 

Protected Static Attributes

const U32 csmTargetMask 

Protected Functions

advanceTime(F32 dt)

Reimplemented from: ProcessObject

DECLARE_CALLBACK(void , applyDamage , (const Point3F &hitPosition, const Point3F &hitNormal, SceneObject *hitObject) )

interpolateTick(F32 delta)

Reimplemented from: ProcessObject

onAdd()

Reimplemented from: SceneObject

onNewDataBlock(GameBaseData * dptr, bool reload)

Reimplemented from: GameBase

onRemove()

Reimplemented from: SceneObject

prepRenderImage(SceneRenderState * state)

Reimplemented from: SceneObject

processTick(const Move * move)

Reimplemented from: ProcessObject

renderObject(ObjectRenderInst * ri, SceneRenderState * state, BaseMatInstance * )

scheduleThunder(Strike * )

Public Functions

Lightning()

~Lightning()

DECLARE_CONOBJECT(Lightning )

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

Reimplemented from: SceneObject

processEvent(LightningStrikeEvent * )

strikeObject(ShapeBase * targetObj)

strikeRandomPoint()

unpackUpdate(NetConnection * conn, BitStream * stream)

Reimplemented from: SceneObject

warningFlashes()

Public Static Functions

initPersistFields()