StaticShape

Engine/source/T3D/staticShape.h

More...

Protected Types

enum
MaskBits {
  PositionMask = Parent::NextFreeMask
  NextFreeMask = Parent::NextFreeMask << 1
}

Private Types

Parent 

Private Attributes

Private Functions

onUnmount(SceneObject * obj, S32 node)

Callback when this object is unmounted.

Public Functions

Interpolates between tick events.

bool
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.

setPowered(bool power)

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

PositionMask = Parent::NextFreeMask
NextFreeMask = Parent::NextFreeMask << 1

Private Types

typedef ShapeBase Parent 

Private Attributes

StaticShapeData * mDataBlock 
bool mPowered 

Private Functions

onUnmount(SceneObject * obj, S32 node)

Reimplemented from: ShapeBase

Public Functions

StaticShape()

~StaticShape()

DECLARE_CONOBJECT(StaticShape )

interpolateTick(F32 delta)

Reimplemented from: GameBase

isPowered()

onAdd()

Reimplemented from: ShapeBase

onNewDataBlock(GameBaseData * dptr, bool reload)

Reimplemented from: ShapeBase

onRemove()

Reimplemented from: ShapeBase

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

Reimplemented from: ShapeBase

processTick(const Move * move)

Reimplemented from: ShapeBase

setPowered(bool power)

setTransform(const MatrixF & mat)

Reimplemented from: ShapeBase

unpackUpdate(NetConnection * conn, BitStream * stream)

Reimplemented from: ShapeBase

Public Static Functions

initPersistFields()