Public Member Functions | |
cScrolls (DWORD dwGUID, cLocation &Loc, DWORD dwModel, float flScale, BOOL fSolid, DWORD dwIcon, std::string strName, std::string strDescription) | |
cScrolls (DWORD dwGUID, DWORD Container, DWORD dwModel, float flScale, BOOL fSolid, DWORD dwIcon, std::string strName, std::string strDescription) | |
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 | |
DWORD | m_dwWeight |
DWORD | m_dwValue |
BOOL | m_fIsStackable |
BOOL | m_fEquippable |
BOOL | m_fIsSolid |
std::string | m_strDescription |
cScrolls::cScrolls | ( | DWORD | dwGUID, | |
cLocation & | Loc, | |||
DWORD | dwModel, | |||
float | flScale, | |||
BOOL | fSolid, | |||
DWORD | dwIcon, | |||
std::string | strName, | |||
std::string | strDescription | |||
) | [inline] |
A constructor.
Called whenever a scroll object is initialized in the world.
cScrolls::cScrolls | ( | DWORD | dwGUID, | |
DWORD | Container, | |||
DWORD | dwModel, | |||
float | flScale, | |||
BOOL | fSolid, | |||
DWORD | dwIcon, | |||
std::string | strName, | |||
std::string | strDescription | |||
) | [inline] |
A constructor.
Called whenever a scroll object is initialized in a container.
void cScrolls::Action | ( | cClient * | who | ) | [virtual] |
Handles the actions of scroll objects.
This function is called whenever a scroll is used or should perform an action.
Implements cObject.
void cScrolls::Assess | ( | cClient * | pcAssesser | ) | [virtual] |
Handles the assessment of scroll objects.
This function is called whenever a scroll is assessed by a client.
Returns a Game Event (0x0000F7B0) server message of type Identify Object (0x000000C9).
Reimplemented from cObject.
cMessage cScrolls::CreatePacket | ( | ) | [virtual] |
cMessage cScrolls::CreatePacketContainer | ( | DWORD | Container, | |
DWORD | ItemModelID | |||
) |
Handles the message sent for the creation of scrolls in a container.
This function is called whenever a scroll should be created in the inventory of another object.