cBooks Class Reference

Inheritance diagram for cBooks:
cObject

List of all members.

Public Member Functions

 cBooks (DWORD dwGUID, cLocation &Loc, DWORD dwModel, WORD wIcon, std::string strName, std::string strDescription)
 cBooks (DWORD dwGUID, DWORD dwContainer, DWORD dwModel, WORD wIcon, std::string strName, std::string strDescription, DWORD dwValue, WORD wBurden)
cMessage CreatePacket ()
cMessage CreatePacketContainer (DWORD Container, DWORD ItemModelID)
void Assess (cClient *pcAssesser)
void Action (cClient *who)
void Read (cClient *who, DWORD GUID, DWORD PageNumber)
DWORD GetItemModelID ()
DWORD GetContainerID ()

Public Attributes

DWORD m_dwItemModelID

Protected Attributes

WORD m_wBurden
DWORD m_dwValue
BOOL m_fIsStackable
BOOL m_fEquippable
BOOL m_fIsSolid
std::string m_strDescription

Constructor & Destructor Documentation

cBooks::cBooks ( DWORD  dwGUID,
cLocation Loc,
DWORD  dwModel,
WORD  wIcon,
std::string  strName,
std::string  strDescription 
) [inline]

A constructor.

Called whenever a book object is initialized in the world.

cBooks::cBooks ( DWORD  dwGUID,
DWORD  dwContainer,
DWORD  dwModel,
WORD  wIcon,
std::string  strName,
std::string  strDescription,
DWORD  dwValue,
WORD  wBurden 
) [inline]

A constructor.

Called whenever a book object is initialized in a container.


Member Function Documentation

void cBooks::Action ( cClient who  )  [virtual]

Handles the actions of book objects.

This function is called whenever book is used or should perform an action. k109: This is the table of contents message. Reading the pages function is below

Implements cObject.

void cBooks::Assess ( cClient pcAssesser  )  [virtual]

Handles the assessment of book objects.

This function is called whenever a book is assessed by a client.

Returns a Game Event (0x0000F7B0) server message of type Identify Object (0x000000C9).

Reimplemented from cObject.

cMessage cBooks::CreatePacket (  )  [virtual]

Handles the message sent for the creation of books in the world.

This function is called whenever a book should be created in the world for a client.

Returns:
cMessage - Returns a Create Object (0x0000F745) server message.

Implements cObject.

cMessage cBooks::CreatePacketContainer ( DWORD  Container,
DWORD  ItemModelID 
)

Handles the message sent for the creation of books in a container.

This function is called whenever a book should be created in the inventory of another object.

Returns:
cMessage - Returns a Create Object (0x0000F745) server message.

The documentation for this class was generated from the following files:

Generated by  doxygen 1.6.2