|
Pol
Rev 533
|
#include <equipmnt.h>
Inheritance diagram for Equipment:
Collaboration diagram for Equipment:Public Member Functions | |
| void | reduce_hp_from_hit () |
Protected Member Functions | |
| Equipment (const ItemDesc &itemdesc, UOBJ_CLASS uobj_class) | |
| virtual Item * | clone () const |
| virtual BObjectImp * | get_script_member (const char *membername) const |
| virtual BObjectImp * | get_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 BObjectImp * | set_script_member (const char *membername, int value) |
| id test | |
| virtual BObjectImp * | set_script_member_double (const char *membername, double value) |
| virtual BObjectImp * | set_script_member_id (const int id, int value) |
| id test | |
| virtual BObjectImp * | set_script_member_id_double (const int id, double value) |
Protected Attributes | |
| const EquipDesc & | eq_tmpl_ |
| unsigned short | hp_ |
| short | maxhp_mod_ |
| double | quality_ |
Private Types | |
| typedef Item | base |
Definition at line 21 of file equipmnt.h.
typedef Item Equipment::base [private] |
Reimplemented from Item.
Reimplemented in UWeapon, and UArmor.
Definition at line 23 of file equipmnt.h.
| Equipment::Equipment | ( | const ItemDesc & | itemdesc, |
| UOBJ_CLASS | uobj_class | ||
| ) | [protected] |
Definition at line 22 of file equipmnt.cpp.
References ItemDesc::quality, and quality_.
| 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:| void Equipment::reduce_hp_from_hit | ( | ) |
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:const EquipDesc& Equipment::eq_tmpl_ [protected] |
Definition at line 45 of file equipmnt.h.
Referenced by maxhp(), and readProperties().
unsigned short Equipment::hp_ [protected] |
Definition at line 47 of file equipmnt.h.
Referenced by UArmor::ar(), clone(), UWeapon::get_random_damage(), get_script_member_id(), printProperties(), readProperties(), reduce_hp_from_hit(), and set_script_member_id().
short Equipment::maxhp_mod_ [protected] |
Definition at line 48 of file equipmnt.h.
Referenced by clone(), get_script_member_id(), maxhp(), printProperties(), readProperties(), and set_script_member_id().
double Equipment::quality_ [protected] |
Definition at line 46 of file equipmnt.h.
Referenced by clone(), Equipment(), get_script_member_id(), printProperties(), readProperties(), set_script_member_id(), and set_script_member_id_double().