Public Member Functions | |
cChest (WORD type, DWORD dwGUID, cLocation *pcLoc, char *szName, char *szDesc) | |
void | Assess (cClient *pcAssesser) |
void | Action (cClient *who) |
cMessage | CreatePacket () |
void | SetMode (DWORD mode) |
DWORD | GetMode () |
void | SetIsLocked (int locked) |
int | GetIsLocked () |
void | SetLDiff (int ldiff) |
int | GetLDiff () |
void | SetData (WORD wAnimConfig, WORD wSoundSet, WORD wModel, WORD wIcon, DWORD dwObject1, DWORD dwObject2) |
Friends | |
class | cClient |
cChest::cChest | ( | WORD | type, | |
DWORD | dwGUID, | |||
cLocation * | pcLoc, | |||
char * | szName, | |||
char * | szDesc | |||
) |
A constructor.
Called whenever a chest object is initialized.
Handles the creation of chests.
Called whenever a chest object should be initialized.
void cChest::Action | ( | cClient * | who | ) | [virtual] |
Handles the actions of chest objects.
This function is called whenever a chest is used or should perform an action.
Implements cObject.
void cChest::Assess | ( | cClient * | pcAssesser | ) | [virtual] |
Handles the assessment of chest objects.
This function is called whenever a chest is assessed by a client.
Returns a Game Event (0x0000F7B0) server message of type Identify Object (0x000000C9).
Reimplemented from cObject.
cMessage cChest::CreatePacket | ( | ) | [virtual] |