News SF.net Project Frequently Asked Questions Documentation Downloads Mailing Lists How to Contribute

SourceForge.net Logo

Changing the way games are made and played.

Zap::HuntersNexusObject class Reference

Zap::HuntersNexusObject Class Reference

#include <huntersGame.h>

Inheritance diagram for Zap::HuntersNexusObject:

Zap::GameObject TNL::NetObject TNL::Object

Public Member Functions

 HuntersNexusObject ()
void onAddedToGame (Game *theGame)
void processArguments (S32 argc, const char **argv)
void render ()
S32 getRenderSortValue ()
bool getCollisionPoly (Vector< Point > &polyPoints)
bool collide (GameObject *hitObject)
U32 packUpdate (GhostConnection *connection, U32 mask, BitStream *stream)
 Write the object's state to a packet.

void unpackUpdate (GhostConnection *connection, BitStream *stream)
 Unpack data written by packUpdate().

 TNL_DECLARE_CLASS (HuntersNexusObject)

Private Types

typedef GameObject Parent

Private Attributes

Rect nexusBounds

Member Typedef Documentation

typedef GameObject Zap::HuntersNexusObject::Parent [private]
 

Reimplemented from Zap::GameObject.


Constructor & Destructor Documentation

Zap::HuntersNexusObject::HuntersNexusObject  ) 
 


Member Function Documentation

void Zap::HuntersNexusObject::onAddedToGame Game theGame  )  [virtual]
 

Reimplemented from Zap::GameObject.

void Zap::HuntersNexusObject::processArguments S32  argc,
const char **  argv
[virtual]
 

Reimplemented from Zap::GameObject.

void Zap::HuntersNexusObject::render  )  [virtual]
 

Reimplemented from Zap::GameObject.

S32 Zap::HuntersNexusObject::getRenderSortValue  )  [inline, virtual]
 

Reimplemented from Zap::GameObject.

bool Zap::HuntersNexusObject::getCollisionPoly Vector< Point > &  polyPoints  )  [virtual]
 

Reimplemented from Zap::GameObject.

bool Zap::HuntersNexusObject::collide GameObject hitObject  )  [virtual]
 

Reimplemented from Zap::GameObject.

U32 Zap::HuntersNexusObject::packUpdate GhostConnection connection,
U32  mask,
BitStream *  stream
[virtual]
 

Write the object's state to a packet.

packUpdate is called on an object when it is to be written into a packet stream for transmission to the client. The updateMask parameter contains the out-of-date state mask for the object. The initial update mask for any object to a client will always be 0xFFFFFFFF, signifying that all states are out of date. It is often useful to check for this mask, to write one-time initialization information for that object.

Reimplemented from TNL::NetObject.

void Zap::HuntersNexusObject::unpackUpdate GhostConnection connection,
BitStream *  stream
[virtual]
 

Unpack data written by packUpdate().

unpackUpdate is called on the client to read an update out of a packet's bit stream. Because the update mask is not encoded by the network system directly, each unpack update function will have to determine from the bit stream which states are being updated.

Reimplemented from TNL::NetObject.

Zap::HuntersNexusObject::TNL_DECLARE_CLASS HuntersNexusObject   ) 
 


Field Documentation

Rect Zap::HuntersNexusObject::nexusBounds [private]