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