cSpellComps Class Reference

Inheritance diagram for cSpellComps:
cObject

List of all members.

Public Member Functions

 cSpellComps (DWORD dwGUID, cLocation &Loc, DWORD dwModel, float flScale, BOOL fSolid, DWORD dwIcon, std::string strName, std::string strDescription)
 cSpellComps (DWORD dwGUID, DWORD dwContainer, DWORD dwModel, DWORD dwIcon, std::string strName, std::string strDescription, DWORD dwValue, WORD wStack, 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
WORD m_wStack
DWORD m_dwValue
std::string m_strDescription

Constructor & Destructor Documentation

cSpellComps::cSpellComps ( DWORD  dwGUID,
cLocation Loc,
DWORD  dwModel,
float  flScale,
BOOL  fSolid,
DWORD  dwIcon,
std::string  strName,
std::string  strDescription 
) [inline]

A constructor.

Called whenever a spell component object is initialized in the world.

cSpellComps::cSpellComps ( DWORD  dwGUID,
DWORD  dwContainer,
DWORD  dwModel,
DWORD  dwIcon,
std::string  strName,
std::string  strDescription,
DWORD  dwValue,
WORD  wStack,
WORD  wWeight 
) [inline]

A constructor.

Called whenever a spell component object is initialized in a container.


Member Function Documentation

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

Handles the actions of spell component objects.

This function is called whenever a spell component is used or should perform an action.

Implements cObject.

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

Handles the assessment of spell component objects.

This function is called whenever a spell component is assessed by a client.

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

Reimplemented from cObject.

cMessage cSpellComps::CreatePacket (  )  [virtual]

Handles the message sent for the creation of spell components in the world.

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

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

Implements cObject.

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

Handles the message sent for the creation of spell components in a container.

This function is called whenever a spell component 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