ProximityMine
Engine/source/T3D/proximityMine.h
Protected Types
Private Types
Parent
Protected Attributes
Protected Functions
prepRenderImage(SceneRenderState * state)
renderObject(ObjectRenderInst * ri, SceneRenderState * state, BaseMatInstance * overrideMat)
Public Functions
advanceTime(F32 dt)
Advances simulation time for animations.
bool
onAdd()
Called when the object is added to the sim.
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.
processTick(const Move * move)
Processes a move event and updates object state once every 32 milliseconds.
setTransform(const MatrixF & mat)
Sets the Object -> World transform.
unpackUpdate(NetConnection * conn, BitStream * stream)
Instructs this object to read state data previously packed with packUpdate.
Public Static Functions
Detailed Description
Protected Types
MaskBits
Enumerator
- DeployedMask = Parent::NextFreeMask
- ExplosionMask = Parent::NextFreeMask << 1
State
Enumerator
- Thrown = 0
Mine has been thrown, but not yet attached to a surface.
- Deployed
Mine has attached to a surface but is not yet armed.
- Armed
Mine is armed and will trigger if any object enters the trigger area.
- Triggered
Mine has been triggered and will explode soon.
- Exploded
Mine has exploded and will be deleted on the server shortly.
- NumStates
Private Types
typedef Item Parent
Protected Attributes
TSThread * mAnimThread
ProximityMineData * mDataBlock
SceneObject * mOwner
State mState
F32 mStateTimeout
Protected Functions
prepRenderImage(SceneRenderState * state)
Reimplemented from: Item
renderObject(ObjectRenderInst * ri, SceneRenderState * state, BaseMatInstance * overrideMat)
setDeployedPos(const Point3F & pos, const Point3F & normal)
Public Functions
ProximityMine()
~ProximityMine()
advanceTime(F32 dt)
Reimplemented from: Item
DECLARE_CONOBJECT(ProximityMine )
explode()
onAdd()
Reimplemented from: Item
onNewDataBlock(GameBaseData * dptr, bool reload)
Reimplemented from: Item
onRemove()
Reimplemented from: Item
packUpdate(NetConnection * conn, U32 mask, BitStream * stream)
Reimplemented from: Item
processTick(const Move * move)
Reimplemented from: Item
setTransform(const MatrixF & mat)
Reimplemented from: Item
unpackUpdate(NetConnection * conn, BitStream * stream)
Reimplemented from: Item