cWorldObject Class Reference

Inheritance diagram for cWorldObject:
cObject

List of all members.

Public Member Functions

 cWorldObject (WORD type, DWORD dwGUID, cLocation *pcLoc, char *szName, char *szDesc)
void Assess (cClient *pcAssesser)
cMessage CreatePacket ()
void Action (cClient *who)
void SetObjectType (int ot)
int GetObjectType ()
void SetData (WORD wModel, WORD wIcon)

Constructor & Destructor Documentation

cWorldObject::cWorldObject ( WORD  type,
DWORD  dwGUID,
cLocation pcLoc,
char *  szName,
char *  szDesc 
)

A constructor.

Called whenever a world object is initialized.

Handles the creation of world objects (town signs, wells, etc).

Called whenever a world object should be initialized.


Member Function Documentation

void cWorldObject::Action ( cClient who  )  [virtual]

Handles the actions of world objects.

This function is called whenever a world object is used or should perform an action.

Implements cObject.

void cWorldObject::Assess ( cClient pcAssesser  )  [virtual]

Handles the assessment of world objects.

This function is called whenever a world objects is assessed by a client.

Returns a Game Event (0x0000F7B0) server message of type Identify Object (0x000000C9).

Reimplemented from cObject.

cMessage cWorldObject::CreatePacket (  )  [virtual]

Handles the message sent for the creation of world objects in the world.

This function is called whenever a world object should be created in the world for a client.

Returns:
cMessage - Returns a Create Object (0x0000F745) server message.

Implements cObject.


The documentation for this class was generated from the following files:

Generated by  doxygen 1.6.2