torque Torque Game Engine Documentation
TGE Version 1.5.2

VehicleBlocker Class Reference

#include <vehicleBlocker.h>

Inheritance diagram for VehicleBlocker:

Inheritance graph
[legend]

Public Member Functions

 VehicleBlocker ()
 ~VehicleBlocker ()
 DECLARE_CONOBJECT (VehicleBlocker)
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 void initPersistFields ()
 Register dynamic fields in a subclass of ConsoleObject.

Protected Member Functions

bool onAdd ()
 Called when the object is added to the sim.
void onRemove ()
 Called when the object is removed from the sim.
void buildConvex (const Box3F &box, Convex *convex)
 Builds a convex hull for this object.

Protected Attributes

ConvexmConvexList
Point3F mDimensions

Private Types

typedef SceneObject Parent

Friends

class VehicleBlockerConvex

Member Typedef Documentation

Reimplemented from SceneObject.


Constructor & Destructor Documentation

VehicleBlocker::VehicleBlocker (  ) 

VehicleBlocker::~VehicleBlocker (  ) 


Member Function Documentation

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

Called when the object is added to the sim.

Reimplemented from SceneObject.

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

Called when the object is removed from the sim.

Reimplemented from SceneObject.

void VehicleBlocker::buildConvex ( const Box3F box,
Convex convex 
) [protected, virtual]

Builds a convex hull for this object.

Think of a convex hull as a low-res mesh which covers, as tightly as possible, the object mesh, and is used as a collision mesh.

Parameters:
box 
convex Convex mesh generated (out)

Reimplemented from SceneObject.

VehicleBlocker::DECLARE_CONOBJECT ( VehicleBlocker   ) 

static void VehicleBlocker::initPersistFields (  )  [static]

Register dynamic fields in a subclass of ConsoleObject.

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

Reimplemented from SceneObject.

U32 VehicleBlocker::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 VehicleBlocker::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.


Friends And Related Function Documentation

friend class VehicleBlockerConvex [friend]


Field Documentation




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