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) |
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.
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] |