Public Member Functions | |
cArmor (DWORD dwGUID, cLocation &Loc, DWORD dwModel, float flScale, BOOL fSolid, DWORD dwIcon, std::string strName, std::string strDescription) | |
cArmor (DWORD dwGUID, DWORD dwContainer, DWORD dwModel, float flScale, BOOL fSolid, DWORD dwIcon, std::string strName, std::string strDescription, DWORD dwValue, WORD wBurden, DWORD dwArmor_Level, float fProt_Slashing, float fProt_Piercing, float fProt_Bludgeon, float fProt_Fire, float fProt_Cold, float fProt_Acid, float fProt_Electric) | |
cMessage | CreatePacket () |
cMessage | CreatePacketContainer (DWORD Container, DWORD ItemModelID) |
void | Assess (cClient *pcAssesser) |
void | Action (cClient *who) |
DWORD | GetItemModelID () |
DWORD | GetContainerID () |
DWORD | GetSlashProt () |
Public Attributes | |
DWORD | m_dwItemModelID |
Protected Attributes | |
DWORD | m_dwValue |
WORD | m_wBurden |
BOOL | m_fIsStackable |
BOOL | m_fEquippable |
BOOL | m_fIsSolid |
DWORD | m_dwActivate_Req_SkillID |
DWORD | m_dwActivate_Req_Skill_Level |
DWORD | m_dwArmor_Level |
float | m_fProt_Slashing |
float | m_fProt_Piercing |
float | m_fProt_Bludgeon |
float | m_fProt_Fire |
float | m_fProt_Cold |
float | m_fProt_Acid |
float | m_fProt_Electric |
std::string | m_strDescription |
cArmor::cArmor | ( | DWORD | dwGUID, | |
cLocation & | Loc, | |||
DWORD | dwModel, | |||
float | flScale, | |||
BOOL | fSolid, | |||
DWORD | dwIcon, | |||
std::string | strName, | |||
std::string | strDescription | |||
) | [inline] |
A constructor.
Called whenever an armor object is initialized in the world.
cArmor::cArmor | ( | DWORD | dwGUID, | |
DWORD | dwContainer, | |||
DWORD | dwModel, | |||
float | flScale, | |||
BOOL | fSolid, | |||
DWORD | dwIcon, | |||
std::string | strName, | |||
std::string | strDescription, | |||
DWORD | dwValue, | |||
WORD | wBurden, | |||
DWORD | dwArmor_Level, | |||
float | fProt_Slashing, | |||
float | fProt_Piercing, | |||
float | fProt_Bludgeon, | |||
float | fProt_Fire, | |||
float | fProt_Cold, | |||
float | fProt_Acid, | |||
float | fProt_Electric | |||
) | [inline] |
A constructor.
Called whenever an armor object is initialized in a container.
void cArmor::Action | ( | cClient * | who | ) | [virtual] |
Handles the actions of armor objects.
This function is called whenever armor is used or should perform an action.
Implements cObject.
void cArmor::Assess | ( | cClient * | pcAssesser | ) | [virtual] |
Handles the assessment of armor objects.
This function is called whenever armor is assessed by a client.
Returns a Game Event (0x0000F7B0) server message of type Identify Object (0x000000C9).
Reimplemented from cObject.
cMessage cArmor::CreatePacket | ( | ) | [virtual] |
cMessage cArmor::CreatePacketContainer | ( | DWORD | Container, | |
DWORD | ItemModelID | |||
) |
Handles the message sent for the creation of armor in a container.
This function is called whenever armor should be created in the inventory of another object.