torque Torque Game Engine Documentation
TGE Version 1.5.2

SpawnSphere Class Reference

#include <missionMarker.h>

Inheritance diagram for SpawnSphere:

Inheritance graph
[legend]

Public Types

enum  SpawnSphereMasks {
  UpdateSphereMask = Parent::NextFreeMask,
  NextFreeMask = Parent::NextFreeMask << 1
}

Public Member Functions

 SpawnSphere ()
bool onAdd ()
 Called when the object is added to the sim.
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 (SpawnSphere)

Static Public Member Functions

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

Data Fields

F32 mRadius
F32 mSphereWeight
F32 mIndoorWeight
F32 mOutdoorWeight

Private Types

typedef MissionMarker Parent

Static Private Attributes

static Sphere smSphere

Member Typedef Documentation

Reimplemented from MissionMarker.


Member Enumeration Documentation

Enumerator:
UpdateSphereMask 
NextFreeMask 


Constructor & Destructor Documentation

SpawnSphere::SpawnSphere (  ) 


Member Function Documentation

bool SpawnSphere::onAdd (  )  [virtual]

Called when the object is added to the sim.

Reimplemented from MissionMarker.

void SpawnSphere::inspectPostApply (  )  [virtual]

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

See also:
inspectPreApply

Reimplemented from MissionMarker.

U32 SpawnSphere::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 MissionMarker.

void SpawnSphere::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 MissionMarker.

static void SpawnSphere::initPersistFields (  )  [static]

Register dynamic fields in a subclass of ConsoleObject.

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

Reimplemented from MissionMarker.

SpawnSphere::DECLARE_CONOBJECT ( SpawnSphere   ) 


Field Documentation

Sphere SpawnSphere::smSphere [static, private]




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