Public Member Functions | |
cHouse (char *szName, char *szDescription, WORD type, DWORD GUID, cLocation *pcLoc=NULL) | |
void | Assess (cClient *pcAssesser) |
cMessage | CreatePacket () |
void | Action (cClient *who) |
void | SetGUID (DWORD GUID) |
void | SetOwner (DWORD ownerID) |
void | SetData (WORD wModel, WORD wIcon) |
void | SetIsOpen (DWORD open) |
Friends | |
class | cClient |
cHouse::cHouse | ( | char * | szName, | |
char * | szDescription, | |||
WORD | type, | |||
DWORD | dwGUID, | |||
cLocation * | pcLoc = NULL | |||
) |
A constructor.
Called whenever a house object is initialized.
Handles the creation of houses.
Called whenever a house object should be initialized.
Generally, house objects reside where the house models are located in the world. By default, the houses are inaccessable (restricted client-side) by characters unless the proper house object is created.
void cHouse::Action | ( | cClient * | who | ) | [virtual] |
Handles the actions of house objects.
This function is called whenever a house object is used or should perform an action.
Implements cObject.
void cHouse::Assess | ( | cClient * | pcAssesser | ) | [virtual] |
Handles the assessment of house objects.
This function is called whenever a house object is assessed by a client. House objects are intended to be imperceptible to the client.
Returns a Game Event (0x0000F7B0) server message of type Identify Object (0x000000C9).
Reimplemented from cObject.
cMessage cHouse::CreatePacket | ( | ) | [virtual] |