fxShapeReplicator Class Reference

#include <fxShapeReplicator.h>

Inheritance diagram for fxShapeReplicator:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 fxShapeReplicator ()
 ~fxShapeReplicator ()
void StartUp (void)
void ShowReplication (void)
void HideReplication (void)
void renderObject (ObjectRenderInst *ri, BaseMatInstance *)
void renderArc (const F32 fRadiusX, const F32 fRadiusY)
void renderPlacementArea (const F32 ElapsedTime)
virtual bool prepRenderImage (SceneState *state, const U32 stateKey, const U32 startZone, const bool modifyBaseZoneState=false)
 Called when the SceneGraph is ready for the registration of RenderImages.
bool onAdd ()
 Called when the object is added to the sim.
void onRemove ()
 Called when the object is removed from the sim.
void onEditorEnable ()
 Called when the editor is activated.
void onEditorDisable ()
 Called when the editor is deactivated.
void inspectPostApply ()
 Called after any property of the object is changed in the world editor.
U32 packUpdate (NetConnection *conn, U32 mask, BitStream *stream)
 Instructs this object to pack its state for transfer over the network.
void unpackUpdate (NetConnection *conn, BitStream *stream)
 Instructs this object to read state data previously packed with packUpdate.
 DECLARE_CONOBJECT (fxShapeReplicator)

Static Public Member Functions

static void initPersistFields ()
 Register dynamic fields in a subclass of ConsoleObject.

Public Attributes

ObjectRenderInst::RenderDelegate mRenderDelegate
GFXStateBlockRef mPlacementSB
fxShapeReplicator::tagFieldData mFieldData

Protected Types

 ReplicationMask = (1 << 0)
enum  { ReplicationMask = (1 << 0) }

Protected Member Functions

void CreateShapes (void)
void DestroyShapes (void)
void RenewShapes (void)

Protected Attributes

U32 mCreationAreaAngle
bool mClientReplicationStarted
bool mAddedToScene
U32 mCurrentShapeCount
Vector< fxShapeReplicatedStatic * > mReplicatedShapes
MRandomLCG RandomGen
S32 mLastRenderTime

Private Types

typedef SceneObject Parent

Classes

class  tagFieldData

Member Typedef Documentation

Reimplemented from SceneObject.


Member Enumeration Documentation

anonymous enum [protected]

Enumerator:
ReplicationMask 


Constructor & Destructor Documentation

fxShapeReplicator::fxShapeReplicator (  ) 

fxShapeReplicator::~fxShapeReplicator (  ) 


Member Function Documentation

void fxShapeReplicator::CreateShapes ( void   )  [protected]

void fxShapeReplicator::DestroyShapes ( void   )  [protected]

void fxShapeReplicator::RenewShapes ( void   )  [protected]

void fxShapeReplicator::StartUp ( void   ) 

void fxShapeReplicator::ShowReplication ( void   ) 

void fxShapeReplicator::HideReplication ( void   ) 

void fxShapeReplicator::renderObject ( ObjectRenderInst ri,
BaseMatInstance  
)

void fxShapeReplicator::renderArc ( const F32  fRadiusX,
const F32  fRadiusY 
)

void fxShapeReplicator::renderPlacementArea ( const F32  ElapsedTime  ) 

virtual bool fxShapeReplicator::prepRenderImage ( SceneState state,
const U32  stateKey,
const U32  startZone,
const bool  modifyBaseZoneState = false 
) [virtual]

Called when the SceneGraph is ready for the registration of RenderImages.

See also:
SceneState
Parameters:
state SceneState
stateKey State key of the current SceneState
startZone Base zone index
modifyBaseZoneState If true, the object needs to modify the zone state.

Reimplemented from SceneObject.

bool fxShapeReplicator::onAdd (  )  [virtual]

Called when the object is added to the sim.

Reimplemented from SceneObject.

void fxShapeReplicator::onRemove (  )  [virtual]

Called when the object is removed from the sim.

Reimplemented from SceneObject.

void fxShapeReplicator::onEditorEnable (  )  [virtual]

Called when the editor is activated.

Reimplemented from SimObject.

void fxShapeReplicator::onEditorDisable (  )  [virtual]

Called when the editor is deactivated.

Reimplemented from SimObject.

void fxShapeReplicator::inspectPostApply (  )  [virtual]

Called after any property of the object is changed in the world editor.

See also:
inspectPreApply

Reimplemented from SceneObject.

U32 fxShapeReplicator::packUpdate ( NetConnection conn,
U32  mask,
BitStream stream 
) [virtual]

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

Parameters:
conn Net connection being used
mask Mask indicating fields to transmit.
stream Bitstream to pack data to
Returns:
Any bits which were not dealt with. The value is stored by the networking system. Don't set bits you weren't passed.

Reimplemented from NetObject.

void fxShapeReplicator::unpackUpdate ( NetConnection conn,
BitStream stream 
) [virtual]

Instructs this object to read state data previously packed with packUpdate.

Parameters:
conn Net connection being used
stream stream to read from

Reimplemented from NetObject.

static void fxShapeReplicator::initPersistFields (  )  [static]

Register dynamic fields in a subclass of ConsoleObject.

See also:
addField(), addFieldV(), addDeprecatedField(), addGroup(), endGroup()

Reimplemented from SceneObject.

fxShapeReplicator::DECLARE_CONOBJECT ( fxShapeReplicator   ) 


Member Data Documentation