|
Pol
Rev 533
|
#include <itemdesc.h>
Inheritance diagram for ItemDesc:
Collaboration diagram for ItemDesc:Definition at line 40 of file itemdesc.h.
| enum ItemDesc::Movable |
Definition at line 91 of file itemdesc.h.
| enum ItemDesc::Type |
| ITEMDESC | |
| CONTAINERDESC | |
| DOORDESC | |
| WEAPONDESC | |
| ARMORDESC | |
| BOATDESC | |
| HOUSEDESC | |
| SPELLBOOKDESC | |
| SPELLSCROLLDESC | |
| MAPDESC |
Definition at line 43 of file itemdesc.h.
| ItemDesc::ItemDesc | ( | u32 | objtype, |
| ConfigElem & | elem, | ||
| Type | type, | ||
| const Package * | pkg | ||
| ) |
Definition at line 176 of file itemdesc.cpp.
References BOATDESC, Resistances::cold, ElementDamages::cold, config, element_damage, element_resist, ELEMENTAL_COLD, ELEMENTAL_ENERGY, ELEMENTAL_FIRE, ELEMENTAL_PHYSICAL, ELEMENTAL_POISON, ELEMENTAL_TYPE_MAX, Resistances::energy, ElementDamages::energy, find_itemdesc(), Resistances::fire, ElementDamages::fire, graphic, has_itemdesc(), hexint(), HOUSEDESC, ignore_cprops, ExportScript::Initialize(), ISTRINGSTREAM, Dice::load(), MAX_STACK_ITEMS, PolConfig::max_tile_id, method_script, MOVABLE, movable, multiid, objtype, objtype_byname, objtype_description(), objtypename, old_objtype_conversions, Resistances::physical, ElementDamages::physical, PKTOUT_B7_MAX_CHARACTERS, Resistances::poison, ElementDamages::poison, props, PropertyList::readProperties(), ConfigElem::remove_prop(), ConfigElem::remove_ushort(), resources, Dice::roll(), stack_limit, ConfigElem::throw_error(), tileweight(), tooltip, UNMOVABLE, weightdiv, and weightmult.
Referenced by create().
Here is the call graph for this function:
Here is the caller graph for this function:| ItemDesc::ItemDesc | ( | Type | type | ) | [explicit] |
Definition at line 476 of file itemdesc.cpp.
| ItemDesc::~ItemDesc | ( | ) | [virtual] |
Definition at line 509 of file itemdesc.cpp.
References unload_scripts().
Here is the call graph for this function:| ItemDesc * ItemDesc::create | ( | ConfigElem & | elem, |
| const Package * | pkg | ||
| ) | [static] |
Definition at line 111 of file itemdesc.cpp.
References find_itemdesc(), ITEMDESC, ItemDesc(), objtype, objtype_description(), old_objtype_conversions, ConfigElemBase::rest(), ConfigElem::throw_error(), ConfigElemBase::type(), and ConfigElemBase::type_is().
Referenced by CreateItemDescriptor(), and read_itemdesc_file().
Here is the call graph for this function:
Here is the caller graph for this function:| bool ItemDesc::default_movable | ( | ) | const |
Definition at line 626 of file itemdesc.cpp.
References DEFAULT, graphic, FLAG::MOVABLE, movable, and tile_flags().
Referenced by PopulateStruct().
Here is the call graph for this function:
Here is the caller graph for this function:| string ItemDesc::objtype_description | ( | ) | const |
Definition at line 616 of file itemdesc.cpp.
References hexint(), Package::name(), objtype, objtypename, and pkg.
Referenced by create(), and ItemDesc().
Here is the call graph for this function:
Here is the caller graph for this function:| void ItemDesc::PopulateStruct | ( | BStruct * | descriptor | ) | const [virtual] |
Reimplemented in MapDesc, HouseDesc, BoatDesc, MultiDesc, SpellScrollDesc, SpellbookDesc, DoorDesc, ContainerDesc, WeaponDesc, ArmorDesc, and EquipDesc.
Definition at line 514 of file itemdesc.cpp.
References ObjArray::addElement(), BStruct::addMember(), BDictionary::addMember(), ARMORDESC, base_str_req, blocks_casting_if_in_hand, BOATDESC, can_use_while_frozen, can_use_while_paralyzed, Resistances::cold, ElementDamages::cold, color, CONTAINERDESC, control_script, create_script, decay_time, decays_on_multis, decint(), default_movable(), desc, destroy_script, DOORDESC, doubleclick_range, element_damage, element_resist, Resistances::energy, ElementDamages::energy, equip_script, facing, Resistances::fire, ElementDamages::fire, PropertyList::getprop(), PropertyList::getpropnames(), ghosts_can_use, graphic, HOUSEDESC, ignore_cprops, invisible, ITEMDESC, lockable, MAPDESC, method_script, multiid, newbie, objtype, objtypename, on_use_script, Resistances::physical, ElementDamages::physical, pkg, Resistances::poison, ElementDamages::poison, props, quality, ScriptDef::relativename(), requires_attention, resources, ExportScript::scriptname(), SPELLBOOKDESC, SPELLSCROLLDESC, stack_limit, tooltip, type, unequip_script, BObjectImp::unpack(), use_requires_los, vendor_buys_for, vendor_sells_for, walk_on_script, WEAPONDESC, weightdiv, and weightmult.
Referenced by EquipDesc::PopulateStruct(), ContainerDesc::PopulateStruct(), DoorDesc::PopulateStruct(), SpellScrollDesc::PopulateStruct(), MultiDesc::PopulateStruct(), and MapDesc::PopulateStruct().
Here is the call graph for this function:
Here is the caller graph for this function:| void ItemDesc::unload_scripts | ( | ) |
Definition at line 607 of file itemdesc.cpp.
References method_script.
Referenced by ~ItemDesc(), and UWeapon::~UWeapon().
Here is the caller graph for this function:| unsigned short ItemDesc::base_str_req |
Definition at line 101 of file itemdesc.h.
Referenced by Character::equippable(), PopulateStruct(), and Character::strong_enough_to_equip().
Definition at line 100 of file itemdesc.h.
Referenced by PopulateStruct().
Definition at line 96 of file itemdesc.h.
Referenced by PopulateStruct().
Definition at line 95 of file itemdesc.h.
Referenced by PopulateStruct().
Definition at line 72 of file itemdesc.h.
Referenced by _create_item_in_container(), and PopulateStruct().
Definition at line 83 of file itemdesc.h.
Referenced by PopulateStruct().
Definition at line 84 of file itemdesc.h.
Referenced by _create_item_in_container(), and PopulateStruct().
| unsigned ItemDesc::decay_time |
Definition at line 90 of file itemdesc.h.
Referenced by getObjtypeParam(), PopulateStruct(), Item::restart_decay_timer(), and xmain_inner().
Definition at line 99 of file itemdesc.h.
Referenced by decay_worldzone(), and PopulateStruct().
| std::string ItemDesc::desc |
Definition at line 77 of file itemdesc.h.
Referenced by Item::create(), and PopulateStruct().
Definition at line 85 of file itemdesc.h.
Referenced by decay_worldzone(), and PopulateStruct().
| unsigned short ItemDesc::doubleclick_range |
Definition at line 92 of file itemdesc.h.
Referenced by Item::get_script_member_id(), getObjtypeParam(), PopulateStruct(), and xmain_inner().
Definition at line 109 of file itemdesc.h.
Referenced by ItemDesc(), and PopulateStruct().
Definition at line 108 of file itemdesc.h.
Referenced by ItemDesc(), and PopulateStruct().
| std::string ItemDesc::equip_script |
Definition at line 81 of file itemdesc.h.
Referenced by PopulateStruct(), and Item::printProperties().
Definition at line 74 of file itemdesc.h.
Referenced by PopulateStruct().
Definition at line 94 of file itemdesc.h.
Referenced by PopulateStruct().
Definition at line 71 of file itemdesc.h.
Referenced by _create_item_in_container(), ArmorDesc::ArmorDesc(), Item::create(), default_movable(), getObjtypeParam(), ItemDesc(), UOExecutorModule::mf_CreateItemAtLocation(), PopulateStruct(), and UDoor::toggle().
| std::set<std::string> ItemDesc::ignore_cprops |
Definition at line 114 of file itemdesc.h.
Referenced by Item::has_only_default_cprops(), ItemDesc(), and PopulateStruct().
| bool ItemDesc::invisible |
Definition at line 98 of file itemdesc.h.
Referenced by Item::default_invisible(), and PopulateStruct().
| bool ItemDesc::lockable |
Definition at line 87 of file itemdesc.h.
Referenced by PopulateStruct().
Definition at line 116 of file itemdesc.h.
Referenced by ItemDesc(), PopulateStruct(), and unload_scripts().
Referenced by default_movable(), and ItemDesc().
Definition at line 104 of file itemdesc.h.
Referenced by ItemDesc(), MultiDesc::MultiDesc(), PopulateStruct(), UHouse::scripted_create(), UBoat::scripted_create(), MultiPlacementCursor::send_placemulti(), and UMulti::UMulti().
| bool ItemDesc::newbie |
Definition at line 97 of file itemdesc.h.
Referenced by Item::default_newbie(), and PopulateStruct().
Definition at line 70 of file itemdesc.h.
Referenced by _create_item_in_container(), check_config(), UMulti::create(), create(), Item::create(), getObjtypeParam(), ItemDesc(), UOExecutorModule::mf_CreateItemAtLocation(), UOExecutorModule::mf_CreateItemInBackpack(), UOExecutorModule::mf_CreateItemInContainer(), UOExecutorModule::mf_CreateItemInInventory(), objtype_description(), PopulateStruct(), read_itemdesc_file(), UHouse::scripted_create(), UBoat::scripted_create(), UMulti::UMulti(), and UWeapon::~UWeapon().
| std::string ItemDesc::objtypename |
Definition at line 68 of file itemdesc.h.
Referenced by ItemDesc(), objtype_description(), PopulateStruct(), and write_objtypes_txt().
Definition at line 80 of file itemdesc.h.
Referenced by Item::double_click(), UOExecutorModule::mf_UseItem(), and PopulateStruct().
| const Package* ItemDesc::pkg |
Definition at line 67 of file itemdesc.h.
Referenced by UArmor::get_script_member_id(), UWeapon::get_script_member_id(), objtype_description(), ArmorDesc::PopulateStruct(), WeaponDesc::PopulateStruct(), PopulateStruct(), ContainerDesc::PopulateStruct(), UArmor::printProperties(), UWeapon::printProperties(), read_itemdesc_file(), UWeapon::set_hit_script(), and write_objtypes_txt().
Definition at line 113 of file itemdesc.h.
Referenced by Item::has_only_default_cprops(), ItemDesc(), and PopulateStruct().
| double ItemDesc::quality |
Definition at line 103 of file itemdesc.h.
Referenced by Equipment::Equipment(), and PopulateStruct().
Definition at line 86 of file itemdesc.h.
Referenced by Item::double_click(), UOExecutorModule::mf_UseItem(), and PopulateStruct().
Definition at line 106 of file itemdesc.h.
| std::vector<ResourceComponent> ItemDesc::resources |
Definition at line 111 of file itemdesc.h.
Referenced by ItemDesc(), and PopulateStruct().
| unsigned short ItemDesc::stack_limit |
Definition at line 102 of file itemdesc.h.
Referenced by Item::can_add_to_self(), UContainer::find_addable_stack(), ItemDesc(), UOExecutorModule::mf_SubtractAmount(), and PopulateStruct().
| std::string ItemDesc::tooltip |
Definition at line 78 of file itemdesc.h.
Referenced by ItemDesc(), and PopulateStruct().
Definition at line 65 of file itemdesc.h.
Referenced by check_config(), UMulti::create(), fast_find_doordesc(), find_container_desc(), find_multidesc(), isboat(), ishouse(), UOExecutorModule::mf_CreateMultiAtLocation(), PopulateStruct(), Realm::readdynamics(), UMulti::scripted_create(), and SpellbookDesc::SpellbookDesc().
| std::string ItemDesc::unequip_script |
Definition at line 82 of file itemdesc.h.
Referenced by PopulateStruct(), and Item::printProperties().
Definition at line 93 of file itemdesc.h.
Referenced by PopulateStruct().
| unsigned int ItemDesc::vendor_buys_for |
Definition at line 89 of file itemdesc.h.
Referenced by Item::buyprice(), and PopulateStruct().
| unsigned int ItemDesc::vendor_sells_for |
Definition at line 88 of file itemdesc.h.
Referenced by PopulateStruct(), and Item::sellprice().
Definition at line 79 of file itemdesc.h.
Referenced by PopulateStruct(), read_itemdesc_file(), Item::walk_on(), and UHouse::walk_on().
Definition at line 76 of file itemdesc.h.
Referenced by ItemDesc(), and PopulateStruct().
Definition at line 75 of file itemdesc.h.
Referenced by ItemDesc(), and PopulateStruct().