Public Member Functions | |
cManaStones (DWORD dwGUID, cLocation &Loc, DWORD dwModel, DWORD dwIcon, std::string strName, std::string strDescription) | |
cManaStones (DWORD dwGUID, DWORD dwContainer, DWORD dwModel, DWORD dwIcon, std::string strName, std::string strDescription, DWORD dwValue, WORD wWeight) | |
cMessage | CreatePacket () |
cMessage | CreatePacketContainer (DWORD Container, DWORD ItemModelID) |
void | Assess (cClient *pcAssesser) |
void | Action (cClient *who) |
DWORD | GetItemModelID () |
DWORD | GetContainerID () |
Public Attributes | |
DWORD | m_dwItemModelID |
Protected Attributes | |
WORD | m_wWeight |
DWORD | m_dwValue |
std::string | m_strDescription |
cManaStones::cManaStones | ( | DWORD | dwGUID, | |
cLocation & | Loc, | |||
DWORD | dwModel, | |||
DWORD | dwIcon, | |||
std::string | strName, | |||
std::string | strDescription | |||
) | [inline] |
A constructor.
Called whenever a mana stone object is initialized in the world.
cManaStones::cManaStones | ( | DWORD | dwGUID, | |
DWORD | dwContainer, | |||
DWORD | dwModel, | |||
DWORD | dwIcon, | |||
std::string | strName, | |||
std::string | strDescription, | |||
DWORD | dwValue, | |||
WORD | wWeight | |||
) | [inline] |
A constructor.
Called whenever a mana stone object is initialized in a container.
void cManaStones::Action | ( | cClient * | who | ) | [virtual] |
Handles the actions of mana stone objects.
This function is called whenever a mana stone is used or should perform an action.
Implements cObject.
void cManaStones::Assess | ( | cClient * | pcAssesser | ) | [virtual] |
Handles the assessment of mana stone objects.
This function is called whenever a mana stone is assessed by a client.
Returns a Game Event (0x0000F7B0) server message of type Identify Object (0x000000C9).
Reimplemented from cObject.
cMessage cManaStones::CreatePacket | ( | ) | [virtual] |
cMessage cManaStones::CreatePacketContainer | ( | DWORD | Container, | |
DWORD | ItemModelID | |||
) |
Handles the message sent for the creation of mana stones in a container.
This function is called whenever a mana stone should be created in the inventory of another object.