Pol  Rev 533
Equipment Class Reference

#include <equipmnt.h>

+ Inheritance diagram for Equipment:
+ Collaboration diagram for Equipment:

List of all members.

Public Member Functions

void reduce_hp_from_hit ()

Protected Member Functions

 Equipment (const ItemDesc &itemdesc, UOBJ_CLASS uobj_class)
virtual Itemclone () const
virtual BObjectImpget_script_member (const char *membername) const
virtual BObjectImpget_script_member_id (const int id) const
unsigned short maxhp () const
virtual void printProperties (std::ostream &os) const
virtual void readProperties (ConfigElem &elem)
virtual bool script_isa (unsigned isatype) const
virtual BObjectImpset_script_member (const char *membername, int value)
 id test
virtual BObjectImpset_script_member_double (const char *membername, double value)
virtual BObjectImpset_script_member_id (const int id, int value)
 id test
virtual BObjectImpset_script_member_id_double (const int id, double value)

Protected Attributes

const EquipDesceq_tmpl_
unsigned short hp_
short maxhp_mod_
double quality_

Private Types

typedef Item base

Detailed Description

Definition at line 21 of file equipmnt.h.


Member Typedef Documentation

typedef Item Equipment::base [private]

Reimplemented from Item.

Reimplemented in UWeapon, and UArmor.

Definition at line 23 of file equipmnt.h.


Constructor & Destructor Documentation

Equipment::Equipment ( const ItemDesc itemdesc,
UOBJ_CLASS  uobj_class 
) [protected]

Definition at line 22 of file equipmnt.cpp.

References ItemDesc::quality, and quality_.


Member Function Documentation

Item * Equipment::clone ( ) const [protected, virtual]

Reimplemented from Item.

Reimplemented in UWeapon, and UArmor.

Definition at line 34 of file equipmnt.cpp.

References Item::clone(), hp_, maxhp_mod_, and quality_.

Referenced by UArmor::clone(), and UWeapon::clone().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

BObjectImp * Equipment::get_script_member ( const char *  membername) const [protected, virtual]

Reimplemented from Item.

Reimplemented in UWeapon, and UArmor.

Definition at line 3091 of file uoscrobj.cpp.

References get_script_member_id(), getKnownObjMember(), and ObjMember::id.

+ Here is the call graph for this function:

BObjectImp * Equipment::get_script_member_id ( const int  id) const [protected, virtual]

Reimplemented from Item.

Reimplemented in UWeapon, and UArmor.

Definition at line 3076 of file uoscrobj.cpp.

References hp_, maxhp(), maxhp_mod_, MBR_HP, MBR_MAXHP, MBR_MAXHP_MOD, MBR_QUALITY, and quality_.

Referenced by get_script_member().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

unsigned short Equipment::maxhp ( ) const [protected]

Definition at line 65 of file equipmnt.cpp.

References eq_tmpl_, EquipDesc::maxhp, and maxhp_mod_.

Referenced by UArmor::ar(), UWeapon::get_random_damage(), and get_script_member_id().

+ Here is the caller graph for this function:

void Equipment::printProperties ( std::ostream &  os) const [protected, virtual]

Reimplemented from Item.

Reimplemented in UWeapon, and UArmor.

Definition at line 46 of file equipmnt.cpp.

References hp_, maxhp_mod_, pf_endl, Item::printProperties(), and quality_.

Referenced by UArmor::printProperties(), and UWeapon::printProperties().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void Equipment::readProperties ( ConfigElem elem) [protected, virtual]

Reimplemented from Item.

Reimplemented in UWeapon, and UArmor.

Definition at line 57 of file equipmnt.cpp.

References eq_tmpl_, hp_, EquipDesc::maxhp, maxhp_mod_, quality_, Item::readProperties(), ConfigElem::remove_double(), ConfigElem::remove_int(), and ConfigElem::remove_ushort().

Referenced by UArmor::readProperties(), and UWeapon::readProperties().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Definition at line 74 of file equipmnt.cpp.

References UObject::CLASS_ARMOR, Item::GetCharacterOwner(), hp_, UObject::increv(), UObject::isa(), random_int(), Character::refresh_ar(), send_object_cache_to_inrange(), and UObject::set_dirty().

Referenced by Character::armor_absorb_damage(), and Character::damage_weapon().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

bool Equipment::script_isa ( unsigned  isatype) const [protected, virtual]

Reimplemented from Item.

Reimplemented in UWeapon, and UArmor.

Definition at line 3720 of file uoscrobj.cpp.

References POLCLASS_EQUIPMENT, and Item::script_isa().

Referenced by UArmor::script_isa(), and UWeapon::script_isa().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

BObjectImp * Equipment::set_script_member ( const char *  membername,
int  value 
) [protected, virtual]

id test

Reimplemented from Item.

Reimplemented in UWeapon, and UArmor.

Definition at line 3141 of file uoscrobj.cpp.

References getKnownObjMember(), ObjMember::id, and set_script_member_id().

+ Here is the call graph for this function:

BObjectImp * Equipment::set_script_member_double ( const char *  membername,
double  value 
) [protected, virtual]

Reimplemented from UObject.

Reimplemented in UWeapon.

Definition at line 3161 of file uoscrobj.cpp.

References getKnownObjMember(), ObjMember::id, and set_script_member_id_double().

Referenced by UWeapon::set_script_member_double().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

BObjectImp * Equipment::set_script_member_id ( const int  id,
int  value 
) [protected, virtual]

id test

Reimplemented from Item.

Reimplemented in UWeapon, and UArmor.

Definition at line 3100 of file uoscrobj.cpp.

References chr_from_wornitems(), UObject::CLASS_ARMOR, Item::container, hp_, UObject::isa(), IsCharacter(), maxhp_mod_, MBR_HP, MBR_MAXHP_MOD, MBR_QUALITY, ARUpdater::on_change(), quality_, and UObject::serial.

Referenced by set_script_member().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

BObjectImp * Equipment::set_script_member_id_double ( const int  id,
double  value 
) [protected, virtual]

Reimplemented from UObject.

Reimplemented in UWeapon.

Definition at line 3150 of file uoscrobj.cpp.

References MBR_QUALITY, and quality_.

Referenced by set_script_member_double(), and UWeapon::set_script_member_id_double().

+ Here is the caller graph for this function:


Member Data Documentation

const EquipDesc& Equipment::eq_tmpl_ [protected]

Definition at line 45 of file equipmnt.h.

Referenced by maxhp(), and readProperties().


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