torque Torque Game Engine Documentation
TGE Version 1.5.2

PathedInterior Class Reference

#include <pathedInterior.h>

Inheritance diagram for PathedInterior:

Inheritance graph
[legend]

Public Types

enum  UpdateMasks {
  NewTargetMask = Parent::NextFreeMask,
  NewPositionMask = Parent::NextFreeMask << 1,
  NextFreeMask = Parent::NextFreeMask << 2
}

Public Member Functions

 PathedInterior ()
 ~PathedInterior ()
PathedInteriorgetNext ()
void processTick (const Move *move)
 Processes a move event and updates object state once every 32 milliseconds.
void setStopped ()
void resolvePathKey ()
bool onNewDataBlock (GameBaseData *dptr)
 Called when a new datablock is set.
bool buildPolyList (AbstractPolyList *polyList, const Box3F &box, const SphereF &sphere)
 Builds a list of polygons which intersect a bounding volume.
bool readPI (Stream &)
bool writePI (Stream &) const
PathedInteriorclone () const
 DECLARE_CONOBJECT (PathedInterior)
void setPathPosition (S32 newPosition)
void setTargetPosition (S32 targetPosition)
void computeNextPathStep (U32 timeDelta)
Box3F getExtrudedBox ()
Point3F getVelocity ()
void advance (F64 timeDelta)
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.

Static Public Member Functions

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

Protected Member Functions

bool prepRenderImage (SceneState *state, const U32 stateKey, const U32 startZone, const bool modifyBaseZoneState)
 Called when the SceneGraph is ready for the registration of RenderImages.
void renderObject (SceneState *state, SceneRenderImage *image)
 Called when the object is supposed to render itself.
void renderShadowVolumes (SceneState *state)
bool onAdd ()
 Called when the object is added to the sim.
void onRemove ()
 Called when the object is removed from the sim.
bool onSceneAdd (SceneGraph *graph)
 Called when this is added to the SceneGraph.
void onSceneRemove ()
 Called when this is removed from the SceneGraph.

Protected Attributes

StringTableEntry mName
S32 mPathIndex
Vector< StringTableEntrymTriggers
Point3F mOffset
Box3F mExtrudedBox
bool mStopped
AUDIOHANDLE mSustainHandle
StringTableEntry mInteriorResName
S32 mInteriorResIndex
Resource< InteriorResourcemInteriorRes
InteriormInterior
Vector< ColorImVertexColorsNormal
Vector< ColorImVertexColorsAlarm
LM_HANDLE mLMHandle
MatrixF mBaseTransform
Point3F mBaseScale
U32 mPathKey
F64 mCurrentPosition
S32 mTargetPosition
Point3F mCurrentVelocity
PathedInteriormNextClientPI

Static Protected Attributes

static PathedInteriormClientPathedInteriors

Private Types

typedef GameBase Parent

Private Member Functions

U32 getPathKey ()

Private Attributes

PathedInteriorDatamDataBlock

Friends

class InteriorInstance
class EditGeometry
class EditInteriorResource

Member Typedef Documentation

typedef GameBase PathedInterior::Parent [private]

Reimplemented from GameBase.


Member Enumeration Documentation

Enumerator:
NewTargetMask 
NewPositionMask 
NextFreeMask 


Constructor & Destructor Documentation

PathedInterior::PathedInterior (  ) 

PathedInterior::~PathedInterior (  ) 


Member Function Documentation

U32 PathedInterior::getPathKey (  )  [private]

bool PathedInterior::prepRenderImage ( SceneState state,
const U32  stateKey,
const U32  startZone,
const bool  modifyBaseZoneState 
) [protected, 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.

void PathedInterior::renderObject ( SceneState state,
SceneRenderImage image 
) [protected, virtual]

Called when the object is supposed to render itself.

Parameters:
state Current rendering state.
See also:
SceneState
Parameters:
image Image associated with this object to render.
See also:
SceneRenderImage

Reimplemented from SceneObject.

void PathedInterior::renderShadowVolumes ( SceneState state  )  [protected]

bool PathedInterior::onAdd (  )  [protected, virtual]

Called when the object is added to the sim.

Reimplemented from GameBase.

void PathedInterior::onRemove (  )  [protected, virtual]

Called when the object is removed from the sim.

Reimplemented from GameBase.

bool PathedInterior::onSceneAdd ( SceneGraph graph  )  [protected, virtual]

Called when this is added to the SceneGraph.

Parameters:
graph SceneGraph this is getting added to

Reimplemented from SceneObject.

void PathedInterior::onSceneRemove (  )  [protected, virtual]

Called when this is removed from the SceneGraph.

Reimplemented from SceneObject.

PathedInterior* PathedInterior::getNext (  )  [inline]

static PathedInterior* PathedInterior::getClientPathedInteriors (  )  [inline, static]

void PathedInterior::processTick ( const Move move  )  [virtual]

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

This takes place both on the client and server, every 32 milliseconds (1 tick).

See also:
ProcessList
Parameters:
move Move event corresponding to this tick, or NULL.

Reimplemented from GameBase.

void PathedInterior::setStopped (  )  [inline]

void PathedInterior::resolvePathKey (  ) 

bool PathedInterior::onNewDataBlock ( GameBaseData dptr  )  [virtual]

Called when a new datablock is set.

This allows subclasses to appropriately handle new datablocks.

See also:
setDataBlock()
Parameters:
dptr New datablock

Reimplemented from GameBase.

bool PathedInterior::buildPolyList ( AbstractPolyList polyList,
const Box3F box,
const SphereF sphere 
) [virtual]

Builds a list of polygons which intersect a bounding volume.

This will use either the sphere or the box, not both, the SceneObject implimentation ignores sphere.

See also:
AbstractPolyList
Parameters:
polyList Poly list build (out)
box Box bounding volume
sphere Sphere bounding volume

Reimplemented from SceneObject.

bool PathedInterior::readPI ( Stream  ) 

bool PathedInterior::writePI ( Stream  )  const

PathedInterior* PathedInterior::clone (  )  const

PathedInterior::DECLARE_CONOBJECT ( PathedInterior   ) 

static void PathedInterior::initPersistFields (  )  [static]

Register dynamic fields in a subclass of ConsoleObject.

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

Reimplemented from GameBase.

void PathedInterior::setPathPosition ( S32  newPosition  ) 

void PathedInterior::setTargetPosition ( S32  targetPosition  ) 

void PathedInterior::computeNextPathStep ( U32  timeDelta  ) 

Box3F PathedInterior::getExtrudedBox (  )  [inline]

Point3F PathedInterior::getVelocity (  ) 

void PathedInterior::advance ( F64  timeDelta  ) 

U32 PathedInterior::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 GameBase.

void PathedInterior::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 GameBase.


Friends And Related Function Documentation

friend class InteriorInstance [friend]

friend class EditGeometry [friend]

friend class EditInteriorResource [friend]


Field Documentation

Reimplemented from GameBase.

bool PathedInterior::mStopped [protected]




All Rights Reserved GarageGames.com, Inc. 1999-2005
Auto-magically Generated with Doxygen