Lightning
Engine/source/T3D/fx/lightning.h
Classes:
Private Types
Parent
Public Attributes
Private Attributes
Protected Attributes
Protected Static Attributes
Protected Functions
advanceTime(F32 dt)
Advances simulation time for animations.
DECLARE_CALLBACK(void , applyDamage , (const Point3F &hitPosition, const Point3F &hitNormal, SceneObject *hitObject) )
interpolateTick(F32 delta)
Interpolates between tick events.
bool
onAdd()
Called when the object is added to the sim.
bool
onNewDataBlock(GameBaseData * dptr, bool reload)
Called when a new datablock is set.
prepRenderImage(SceneRenderState * state)
Called when the SceneManager is ready for the registration of render instances.
processTick(const Move * move)
Processes a move event and updates object state once every 32 milliseconds.
renderObject(ObjectRenderInst * ri, SceneRenderState * state, BaseMatInstance * )
Public Functions
packUpdate(NetConnection * conn, U32 mask, BitStream * stream)
Instructs this object to pack its state for transfer over the network.
strikeObject(ShapeBase * targetObj)
unpackUpdate(NetConnection * conn, BitStream * stream)
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()