ProximityMine

Engine/source/T3D/proximityMine.h

More...

Protected Types

enum
MaskBits {
  DeployedMask = Parent::NextFreeMask
  ExplosionMask = Parent::NextFreeMask << 1
}
enum
State {
  Thrown = 0
  Deployed 
  Armed 
  Triggered 
  Exploded 
  NumStates 
}

Private Types

Parent 

Public Functions

Advances simulation time for animations.

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.

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

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

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

Sets the Object -> World transform.

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

Public Static Functions

consoleInit()