|
Pol
Revision:cb584c9
|
#include <containr.h>
Inheritance diagram for Pol::Core::UContainer:Public Types | |
| typedef ULockable | base |
| typedef Contents::const_iterator | const_iterator |
| typedef std::vector< Items::Item * > | Contents |
| typedef Contents::iterator | iterator |
| enum | MoveType { MT_PLAYER = 0, MT_CORE_MOVED = 1, MT_CORE_CREATED = 2 } |
Public Member Functions | |
| virtual | ~UContainer () |
| virtual void | add (Items::Item *item) |
| void | add_at_random_location (Items::Item *item) |
| virtual void | add_bulk (int item_count_delta, int weight_delta) |
| void | add_bulk (const Items::Item *item) |
| iterator | begin () |
| const_iterator | begin () const |
| virtual void | builtin_on_use (Network::Client *client) POL_OVERRIDE |
| virtual bool | can_add (const Items::Item &item) const |
| virtual bool | can_add (unsigned short more_weight) const |
| bool | can_add_bulk (int tli_diff, int item_count_diff, int weight_diff) const |
| bool | can_add_to_slot (u8 &slotIndex) |
| bool | can_insert_add_item (Mobile::Character *mob, MoveType move, Items::Item *new_item) |
| bool | can_insert_increase_stack (Mobile::Character *mob, MoveType move, Items::Item *existing_item, unsigned short amt_to_add, Items::Item *adding_item) |
| bool | can_swap (const UContainer &cont) const |
| bool | check_can_remove_script (Mobile::Character *chr, Items::Item *item, MoveType move=MT_PLAYER) |
| virtual Items::Item * | clone () const POL_OVERRIDE |
| void | consume_sumof_objtype_noninuse (u32 objtype, unsigned int amount) |
| unsigned | count () const |
| bool | default_no_drop_exception () const |
| const Items::ContainerDesc & | descriptor () const |
| virtual void | destroy () POL_OVERRIDE |
| void | destroy_contents () |
| DYN_PROPERTY (max_items_mod, s16, Core::PROP_MAX_ITEMS_MOD, 0) | |
| DYN_PROPERTY (max_slots_mod, s8, Core::PROP_MAX_SLOTS_MOD, 0) | |
| DYN_PROPERTY (max_weight_mod, s16, Core::PROP_MAX_WEIGHT_MOD, 0) | |
| iterator | end () |
| const_iterator | end () const |
| void | enumerate_contents (Bscript::ObjArray *arr, int flags) |
| virtual size_t | estimatedSize () const POL_OVERRIDE |
| void | extract (Contents &cnt) |
| Items::Item * | find (u32 serial) const |
| Items::Item * | find_addable_stack (const Items::Item *adding_item) const |
| UContainer * | find_container (u32 serial) const |
| bool | find_empty_slot (u8 &slotIndex) |
| Items::Item * | find_objtype (u32 objtype, int flags) const |
| Items::Item * | find_objtype_noninuse (u32 objtype) const |
| unsigned int | find_sumof_objtype_noninuse (u32 objtype) const |
| unsigned int | find_sumof_objtype_noninuse (u32 objtype, u32 amtToGet, Contents &saveItemsTo, int flags) const |
| Items::Item * | find_toplevel (u32 serial) const |
| Items::Item * | find_toplevel_objtype (u32 objtype) const |
| Items::Item * | find_toplevel_objtype (u32 objtype, unsigned short maxamount) const |
| Items::Item * | find_toplevel_objtype_noninuse (u32 objtype) const |
| Items::Item * | find_toplevel_objtype_noninuse (u32 objtype, unsigned short maxamount) const |
| Items::Item * | find_toplevel_polclass (unsigned int polclass) const |
| virtual void | for_each_item (void(*f)(Item *item, void *a), void *arg) |
| virtual Mobile::Character * | get_chr_owner () |
| void | get_random_location (u16 *px, u16 *py) const |
| virtual Bscript::BObjectImp * | get_script_member (const char *membername) const POL_OVERRIDE |
| virtual Bscript::BObjectImp * | get_script_member_id (const int id) const POL_OVERRIDE |
| u16 | gump () const |
| bool | is_legal_posn (const Items::Item *item, u16 x, u16 y) const |
| bool | is_slot_empty (u8 &slotIndex) |
| virtual unsigned int | item_count () const POL_OVERRIDE |
| unsigned short | max_items () const |
| u8 | max_slots () const |
| unsigned short | max_weight () const |
| bool | no_drop_exception () const |
| void | no_drop_exception (bool newvalue) |
| virtual void | on_insert_add_item (Mobile::Character *mob, MoveType move, Items::Item *new_item) |
| void | on_insert_increase_stack (Mobile::Character *mob, MoveType move, Items::Item *existing_item, unsigned short amt_added) |
| void | on_remove (Mobile::Character *chr, Items::Item *item, MoveType move=MT_PLAYER) |
| virtual void | printProperties (Clib::StreamWriter &sw) const POL_OVERRIDE |
| virtual void | readProperties (Clib::ConfigElem &elem) POL_OVERRIDE |
| virtual Items::Item * | remove (u32 serial, UContainer **found_in=nullptr) |
| virtual void | remove (Items::Item *item) |
| virtual void | remove (iterator itr) |
| void | remove_bulk (const Items::Item *item) |
| virtual bool | script_isa (unsigned isatype) const POL_OVERRIDE |
| virtual Bscript::BObjectImp * | set_script_member (const char *membername, int value) POL_OVERRIDE |
| id test More... | |
| virtual Bscript::BObjectImp * | set_script_member_id (const int id, int value) POL_OVERRIDE |
| id test More... | |
| virtual void | spill_contents (Multi::UMulti *supporting_multi) POL_OVERRIDE |
| void | swap (UContainer &cont) |
| Items::Item * | system_find (u32 serial) const |
| virtual unsigned int | weight () const POL_OVERRIDE |
Public Member Functions inherited from Pol::Core::ULockable | |
| bool | locked () const |
Public Member Functions inherited from Pol::Items::Item | |
| virtual | ~Item () |
| void | add_to_self (Item *&item) |
| bool | amount_to_remove_is_partial (u16 amount_to_remove) const |
| u32 | buyprice () const |
| void | buyprice (u32) |
| Bscript::BObject | call_custom_method (const char *methodname, Bscript::BObjectImpRefVec &pmore) |
| Bscript::BObject | call_custom_method (const char *methodname) |
| bool | can_add_to_self (unsigned short amount, bool force_stacking) const |
| bool | can_add_to_self (const Item &item, bool force_stacking) const |
| bool | can_decay () const |
| bool | check_equip_script (Mobile::Character *chr, bool startup) |
| bool | check_equiptest_scripts (Mobile::Character *chr, bool startup=false) |
| bool | check_test_scripts (Mobile::Character *chr, const std::string &script_ecl, bool startup) |
| bool | check_unequip_script () |
| bool | check_unequiptest_scripts (Mobile::Character *chr) |
| bool | check_unequiptest_scripts () |
| virtual const char * | classname () const POL_OVERRIDE |
| virtual Bscript::BObjectImp * | custom_script_method (const char *methodname, Bscript::Executor &ex) POL_OVERRIDE |
| bool | default_insured () const |
| bool | default_invisible () const |
| bool | default_movable () const |
| bool | default_newbie () const |
| bool | default_no_drop () const |
| virtual std::string | description () const POL_OVERRIDE |
| void | disable_decay () |
| virtual void | double_click (Network::Client *client) |
| DYN_PROPERTY (maxhp_mod, s16, Core::PROP_MAXHP_MOD, 0) | |
| DYN_PROPERTY (name_suffix, std::string, Core::PROP_NAME_SUFFIX,"") | |
| DYN_PROPERTY_POINTER (gotten_by, Mobile::Character *, Core::PROP_GOTTEN_BY) | |
| DYN_PROPERTY_POINTER (process, Module::UOExecutorModule *, Core::PROP_PROCESS) | |
| DYN_PROPERTY_POINTER (house, Multi::UHouse *, Core::PROP_HOUSE) | |
| void | extricate () |
| virtual u16 | get_senditem_amount () const |
| std::string | get_use_script_name () const |
| u16 | getamount () const |
| bool | getbuyprice (u32 &buyprice) const |
| Mobile::Character * | GetCharacterOwner () |
| virtual double | getQuality () const |
| bool | has_equip_script () const |
| bool | has_only_default_cprops (const ItemDesc *compare=nullptr) const |
| bool | insured () const |
| void | insured (bool newvalue) |
| bool | inuse () const |
| void | inuse (bool newvalue) |
| bool | invisible () const |
| void | invisible (bool newvalue) |
| const ItemDesc & | itemdesc () const |
| virtual Bscript::BObjectImp * | make_ref () POL_OVERRIDE |
| unsigned short | maxhp () const |
| std::string | merchant_description () const |
| bool | movable () const |
| void | movable (bool newvalue) |
| virtual std::string | name () const POL_OVERRIDE |
| bool | newbie () const |
| void | newbie (bool newvalue) |
| bool | no_drop () const |
| void | no_drop (bool newvalue) |
| virtual void | on_color_changed () POL_OVERRIDE |
| virtual void | on_facing_changed () POL_OVERRIDE |
| void | on_invisible_changed () |
| void | on_movable_changed () |
| virtual UObject * | owner () POL_OVERRIDE |
| virtual const UObject * | owner () const POL_OVERRIDE |
| Item * | remove_part_of_stack (u16 amount_to_remove) |
| void | reset_slot () |
| void | restart_decay_timer () |
| Bscript::BObjectImp * | run_equip_script (Mobile::Character *chr, bool startup) |
| Bscript::BObjectImp * | run_unequip_script (Mobile::Character *who) |
| virtual Bscript::BObjectImp * | script_method (const char *methodname, Bscript::Executor &ex) POL_OVERRIDE |
| virtual Bscript::BObjectImp * | script_method_id (const int id, Bscript::Executor &ex) POL_OVERRIDE |
| u32 | sellprice () const |
| void | sellprice (u32) |
| void | set_decay_after (unsigned int seconds) |
| virtual Bscript::BObjectImp * | set_script_member (const char *membername, const std::string &value) POL_OVERRIDE |
| id test More... | |
| virtual Bscript::BObjectImp * | set_script_member_double (const char *membername, double value) POL_OVERRIDE |
| id test More... | |
| virtual Bscript::BObjectImp * | set_script_member_id (const int id, const std::string &value) POL_OVERRIDE |
| virtual Bscript::BObjectImp * | set_script_member_id_double (const int id, double value) POL_OVERRIDE |
| void | set_use_script (const std::string &scriptname) |
| void | setamount (u16 amount) |
| virtual bool | setcolor (u16 newcolor) POL_OVERRIDE |
| virtual void | setfacing (u8 newfacing) POL_OVERRIDE |
| virtual bool | setgraphic (u16 newobjtype) POL_OVERRIDE |
| bool | setlayer (unsigned char layer) |
| virtual void | setQuality (double value) |
| bool | should_decay (unsigned int gameclock) const |
| Item * | slice_stacked_item (u16 this_item_new_amount) |
| u8 | slot_index () const |
| bool | slot_index (u8 newvalue) |
| bool | stackable () const |
| void | subamount (u16 amount_subtract) |
| virtual const char * | target_tag () const POL_OVERRIDE |
| virtual UObject * | toplevel_owner () POL_OVERRIDE |
| virtual const UObject * | toplevel_owner () const POL_OVERRIDE |
| bool | use_insurance () |
| Returns current insurance value and resets it to false. More... | |
| virtual void | walk_on (Mobile::Character *chr) |
| unsigned int | weight_of (unsigned short amount) const |
Public Member Functions inherited from Pol::Core::UObject | |
| ref_counted * | as_ref_counted () |
| void | clear_dirty () const |
| void | copyprops (const UObject &obj) |
| void | copyprops (const PropertyList &proplist) |
| bool | dirty () const |
| DYN_PROPERTY (maxhp_mod, s16, PROP_MAXHP_MOD, 0) | |
| DYN_PROPERTY (fire_resist, ValueModPack, PROP_RESIST_FIRE, ValueModPack::DEFAULT) | |
| DYN_PROPERTY (cold_resist, ValueModPack, PROP_RESIST_COLD, ValueModPack::DEFAULT) | |
| DYN_PROPERTY (energy_resist, ValueModPack, PROP_RESIST_ENERGY, ValueModPack::DEFAULT) | |
| DYN_PROPERTY (poison_resist, ValueModPack, PROP_RESIST_POISON, ValueModPack::DEFAULT) | |
| DYN_PROPERTY (physical_resist, ValueModPack, PROP_RESIST_PHYSICAL, ValueModPack::DEFAULT) | |
| DYN_PROPERTY (fire_damage, ValueModPack, PROP_DAMAGE_FIRE, ValueModPack::DEFAULT) | |
| DYN_PROPERTY (cold_damage, ValueModPack, PROP_DAMAGE_COLD, ValueModPack::DEFAULT) | |
| DYN_PROPERTY (energy_damage, ValueModPack, PROP_DAMAGE_ENERGY, ValueModPack::DEFAULT) | |
| DYN_PROPERTY (poison_damage, ValueModPack, PROP_DAMAGE_POISON, ValueModPack::DEFAULT) | |
| DYN_PROPERTY (physical_damage, ValueModPack, PROP_DAMAGE_PHYSICAL, ValueModPack::DEFAULT) | |
| void | eraseprop (const std::string &propname) |
| virtual void | fixInvalidGraphic () |
| Fixes invalid graphic, moving here to allow it to be overridden in subclass (see Multi) More... | |
| bool | getprop (const std::string &propname, std::string &propvalue) const |
| void | getpropnames (std::vector< std::string > &propnames) const |
| const PropertyList & | getprops () const |
| void | increv () |
| virtual void | printOnDebug (Clib::StreamWriter &sw) const |
| void | ref_counted_add_ref () |
| unsigned | ref_counted_count () const |
| void | ref_counted_release () |
| u32 | rev () const |
| bool | saveonexit () const |
| void | saveonexit (bool newvalue) |
| virtual UObject * | self_as_owner () |
| virtual const UObject * | self_as_owner () const |
| void | set_dirty () |
| void | setname (const std::string &) |
| void | setprop (const std::string &propname, const std::string &propvalue) |
| bool | specific_name () const |
Public Member Functions inherited from Pol::Core::ULWObject | |
| bool | isa (UOBJ_CLASS uobj_class) const |
| bool | isitem () const |
| bool | ismobile () const |
| bool | ismulti () const |
| u8 | look_height () const |
| bool | orphan () const |
Public Member Functions inherited from Pol::Core::DynamicPropsHolder | |
| DynamicPropsHolder () | |
| size_t | estimateSizeDynProps () const |
| template<typename V > | |
| bool | getmember (DynPropTypes member, V *value) const |
| bool | hasmember (DynPropTypes member) const |
| template<typename V > | |
| void | setmember (DynPropTypes member, const V &value, const V &defaultvalue) |
| template<typename V > | |
| void | setmemberPointer (DynPropTypes member, V value) |
Protected Member Functions | |
| UContainer (const Items::ContainerDesc &descriptor) | |
| UContainer (u32 objtype, UOBJ_CLASS pol_class) | |
| Items::Item * | find (u32 serial, iterator &where_in_container) |
| Items::Item * | operator[] (unsigned idx) const |
| void | printContents (Clib::StreamWriter &sw) const |
| virtual void | printOn (Clib::StreamWriter &sw) const POL_OVERRIDE |
| virtual void | printSelfOn (Clib::StreamWriter &sw) const POL_OVERRIDE |
Protected Member Functions inherited from Pol::Core::ULockable | |
| ULockable (const Items::ItemDesc &itemdesc, UOBJ_CLASS uobj_class) | |
| virtual | ~ULockable () |
| void | locked (bool newvalue) |
Protected Member Functions inherited from Pol::Items::Item | |
| Item (const ItemDesc &itemdesc, Core::UOBJ_CLASS uobj_class) | |
| virtual void | printDebugProperties (Clib::StreamWriter &sw) const POL_OVERRIDE |
Protected Member Functions inherited from Pol::Core::UObject | |
| UObject (u32 objtype, UOBJ_CLASS uobj_class) | |
| virtual | ~UObject () |
Protected Member Functions inherited from ref_counted | |
| ref_counted () | |
| ~ref_counted ()=default | |
| unsigned int | add_ref () |
| unsigned int | count () const |
| unsigned int | release () |
Protected Member Functions inherited from Pol::Core::ULWObject | |
| ULWObject (UOBJ_CLASS uobj_class) | |
| ULWObject (const ULWObject &)=delete | |
| ~ULWObject ()=default | |
| ULWObject & | operator= (const ULWObject &)=delete |
| bool | isa (UOBJ_CLASS uobj_class) const |
| bool | isitem () const |
| bool | ismobile () const |
| bool | ismulti () const |
| u8 | look_height () const |
| bool | orphan () const |
Protected Member Functions inherited from Pol::Core::DynamicPropsHolder | |
| ~DynamicPropsHolder ()=default | |
| DynamicPropsHolder () | |
| size_t | estimateSizeDynProps () const |
| template<typename V > | |
| bool | getmember (DynPropTypes member, V *value) const |
| bool | hasmember (DynPropTypes member) const |
| template<typename V > | |
| void | setmember (DynPropTypes member, const V &value, const V &defaultvalue) |
| template<typename V > | |
| void | setmemberPointer (DynPropTypes member, V value) |
Protected Attributes | |
| Contents | contents_ |
| const Items::ContainerDesc & | desc |
| unsigned int | held_item_count_ |
| u16 | held_weight_ |
Protected Attributes inherited from Pol::Items::Item | |
| const ItemDesc * | _itemdesc |
| u16 | amount_ |
| unsigned int | decayat_gameclock_ |
| boost_utils::script_name_flystring | equip_script_ |
| boost_utils::script_name_flystring | on_use_script_ |
| u8 | slot_index_ |
| boost_utils::script_name_flystring | unequip_script_ |
Protected Attributes inherited from Pol::Core::UObject | |
| AttributeFlags< OBJ_FLAGS > | flags_ |
| boost_utils::object_name_flystring | name_ |
Protected Attributes inherited from ref_counted | |
| std::atomic< unsigned int > | _count |
Protected Attributes inherited from Pol::Core::ULWObject | |
| const UOBJ_CLASS | uobj_class_ |
| u16 | graphic |
| u8 | height |
| Realms::Realm * | realm |
| u32 | serial |
| u16 | x |
| u16 | y |
| s8 | z |
Friends | |
| Items::Item * | Items::Item::create (const Items::ItemDesc &itemdesc, u32 serial) |
| bool | Module::send_vendorwindow_contents (Network::Client *client, UContainer *for_sale, bool send_aos_tooltip) |
| bool | send_vendorsell (Network::Client *client, Mobile::NPC *merchant, UContainer *sellfrom, bool send_aos_tooltip) |
| class | UContainerIterator |
| class | WornItemsContainer |
Additional Inherited Members | |
Static Public Member Functions inherited from Pol::Items::Item | |
| static Item * | create (u32 objtype, u32 serial=0) |
| static Item * | create (const ItemDesc &itemdesc, u32 serial=0) |
Public Attributes inherited from Pol::Items::Item | |
| Core::UContainer * | container |
| unsigned short | hp_ |
| u8 | layer |
| u8 | tile_layer |
Public Attributes inherited from Pol::Core::UObject | |
| u16 | color |
| u8 | facing |
| const u32 | objtype_ |
| u32 | serial_ext |
Public Attributes inherited from Pol::Core::ULWObject | |
| u16 | graphic |
| u8 | height |
| Realms::Realm * | realm |
| u32 | serial |
| u16 | x |
| u16 | y |
| s8 | z |
Static Public Attributes inherited from Pol::Core::UObject | |
| static std::atomic< unsigned int > | clean_writes |
| static std::atomic< unsigned int > | dirty_writes |
Static Protected Attributes inherited from Pol::Items::Item | |
| static const u32 | BUYPRICE_DEFAULT = UINT_MAX |
| static const u32 | SELLPRICE_DEFAULT = UINT_MAX |
Definition at line 104 of file containr.h.
| typedef ULockable Pol::Core::UContainer::base |
Definition at line 107 of file containr.h.
| typedef Contents::const_iterator Pol::Core::UContainer::const_iterator |
Definition at line 115 of file containr.h.
| typedef std::vector<Items::Item*> Pol::Core::UContainer::Contents |
Definition at line 113 of file containr.h.
| typedef Contents::iterator Pol::Core::UContainer::iterator |
Definition at line 114 of file containr.h.
| Enumerator | |
|---|---|
| MT_PLAYER | |
| MT_CORE_MOVED | |
| MT_CORE_CREATED | |
Definition at line 171 of file containr.h.
|
virtual |
Definition at line 62 of file containr.cpp.
References contents_, and passert_always.
|
explicitprotected |
Definition at line 54 of file containr.cpp.
References Pol::Core::CLASS_CONTAINER.
|
protected |
|
virtual |
Reimplemented in Pol::Core::Spellbook, and Pol::Core::UCorpse.
Definition at line 194 of file containr.cpp.
References add_bulk(), Pol::Items::Item::container, contents_, INC_PROFILEVAR, Pol::Core::ULWObject::realm, and Pol::Core::UObject::set_dirty().
Referenced by Pol::Core::UCorpse::add(), add_at_random_location(), Pol::Core::add_loaded_item(), Pol::Core::ClientCreateChar(), Pol::Core::ClientCreateChar70160(), Pol::Core::ClientCreateCharKR(), Pol::Module::NPCExecutorModule::CreateItem(), Pol::Mobile::Character::die(), Pol::Core::do_place_item_in_secure_trade_container(), Pol::Core::get_item(), Pol::Module::UOExecutorModule::mf_MoveItemToContainer(), Pol::Module::oldBuyHandler(), Pol::Module::oldSellHandler(), Pol::Core::place_item_in_container(), Pol::Core::undo_get_item(), and Pol::Module::ItemGivenEvent::~ItemGivenEvent().
| void Pol::Core::UContainer::add_at_random_location | ( | Items::Item * | item | ) |
Definition at line 291 of file containr.cpp.
References add(), get_random_location(), Pol::Core::ULWObject::x, Pol::Core::ULWObject::y, and Pol::Core::ULWObject::z.
Referenced by Pol::Module::_create_item_in_container(), Pol::Mobile::Character::die(), Pol::Core::drop_item_on_mobile(), Pol::Core::equip_loaded_item(), Pol::Module::oldBuyHandler(), Pol::Core::return_traded_items(), Pol::Items::Item::script_method_id(), and Pol::Core::undo_get_item().
|
virtual |
Reimplemented in Pol::Core::Spellbook.
Definition at line 215 of file containr.cpp.
References add_bulk(), Pol::Items::Item::container, held_item_count_, and held_weight_.
Referenced by add(), add_bulk(), extract(), Pol::Core::WornItemsContainer::PutItemOnLayer(), Pol::Core::UCorpse::PutItemOnLayer(), remove_bulk(), Pol::Items::Item::setamount(), and swap().
| void Pol::Core::UContainer::add_bulk | ( | const Items::Item * | item | ) |
Definition at line 206 of file containr.cpp.
References add_bulk(), and Pol::Items::Item::weight().
| UContainer::iterator Pol::Core::UContainer::begin | ( | ) |
Definition at line 681 of file containr.cpp.
References contents_.
Referenced by Pol::Module::_create_item_in_container(), Pol::Core::Spellbook::calc_current_bitwise_contents(), Pol::Core::drop_item_on_object(), Pol::Core::knows_spell(), Pol::Core::send_container_contents(), Pol::Module::send_vendorsell(), Pol::Mobile::Character::spellbook(), and Pol::Core::UCorpse::spill_contents().
| UContainer::const_iterator Pol::Core::UContainer::begin | ( | ) | const |
Definition at line 672 of file containr.cpp.
References contents_.
|
virtual |
Reimplemented from Pol::Items::Item.
Definition at line 690 of file containr.cpp.
References Pol::Core::ULockable::locked(), Pol::Network::Client::pause(), Pol::Network::Client::restart(), Pol::Core::send_container_contents(), Pol::Core::send_open_gump(), and Pol::Core::send_sysmessage().
Referenced by Pol::Core::doubleclick().
|
virtual |
Reimplemented in Pol::Core::Spellbook.
Definition at line 168 of file containr.cpp.
References can_add_bulk(), and Pol::Items::Item::weight().
Referenced by Pol::Module::_create_item_in_container(), Pol::Core::add_loaded_item(), Pol::Items::Item::can_add_to_self(), Pol::Module::NPCExecutorModule::CreateItem(), Pol::Mobile::Character::die(), Pol::Core::drop_item_on_object(), Pol::Core::equip_loaded_item(), Pol::Core::find_giveitem_container(), Pol::Module::UOExecutorModule::mf_MoveItemToContainer(), Pol::Module::oldBuyHandler(), Pol::Module::oldSellHandler(), Pol::Core::place_item_in_container(), Pol::Core::place_item_in_secure_trade_container(), Pol::Core::return_traded_items(), Pol::Core::undo_get_item(), and Pol::Module::ItemGivenEvent::~ItemGivenEvent().
|
virtual |
Definition at line 173 of file containr.cpp.
References can_add_bulk().
| bool Pol::Core::UContainer::can_add_bulk | ( | int | tli_diff, |
| int | item_count_diff, | ||
| int | weight_diff | ||
| ) | const |
Definition at line 125 of file containr.cpp.
References can_add_bulk(), Pol::Items::Item::container, contents_, Pol::Core::StateManager::gflag_enforce_container_limits, held_item_count_, held_weight_, MAX_CONTAINER_ITEMS, max_items(), MAX_SLOTS, max_slots(), max_weight(), Pol::Core::settingsManager, Pol::Core::SettingsManager::ssopt, Pol::Core::stateManager, Pol::Core::ServSpecOpt::use_slot_index, and weight().
Referenced by can_add(), can_add_bulk(), and can_swap().
| bool Pol::Core::UContainer::can_add_to_slot | ( | u8 & | slotIndex | ) |
Definition at line 178 of file containr.cpp.
References find_empty_slot(), is_slot_empty(), max_slots(), Pol::Core::settingsManager, Pol::Core::SettingsManager::ssopt, and Pol::Core::ServSpecOpt::use_slot_index.
Referenced by Pol::Module::_create_item_in_container(), Pol::Core::add_loaded_item(), Pol::Core::ClientCreateChar(), Pol::Core::ClientCreateChar70160(), Pol::Core::ClientCreateCharKR(), Pol::Module::NPCExecutorModule::CreateItem(), Pol::Mobile::Character::die(), Pol::Core::drop_item_on_mobile(), Pol::Core::equip_loaded_item(), Pol::Core::find_giveitem_container(), Pol::Core::get_item(), Pol::Module::UOExecutorModule::mf_MoveItemToContainer(), Pol::Core::place_item_in_container(), Pol::Core::return_traded_items(), Pol::Core::undo_get_item(), and Pol::Module::ItemGivenEvent::~ItemGivenEvent().
| bool Pol::Core::UContainer::can_insert_add_item | ( | Mobile::Character * | mob, |
| MoveType | move, | ||
| Items::Item * | new_item | ||
| ) |
Definition at line 817 of file containr.cpp.
References Pol::Core::call_script(), Pol::Items::ContainerDesc::can_insert_script, Pol::Bscript::UninitObject::create(), desc, Pol::Core::ScriptDef::empty(), Pol::Core::INSERT_ADD_ITEM, Pol::Items::Item::make_ref(), and Pol::Mobile::Character::make_ref().
Referenced by Pol::Module::_create_item_in_container(), Pol::Module::UOExecutorModule::mf_MoveItemToContainer(), Pol::Module::oldBuyHandler(), Pol::Core::place_item_in_container(), Pol::Core::place_item_in_secure_trade_container(), Pol::Core::return_traded_items(), Pol::Items::Item::script_method_id(), and Pol::Core::undo_get_item().
| bool Pol::Core::UContainer::can_insert_increase_stack | ( | Mobile::Character * | mob, |
| MoveType | move, | ||
| Items::Item * | existing_item, | ||
| unsigned short | amt_to_add, | ||
| Items::Item * | adding_item | ||
| ) |
Definition at line 787 of file containr.cpp.
References Pol::Core::call_script(), Pol::Items::ContainerDesc::can_insert_script, Pol::Bscript::UninitObject::create(), desc, Pol::Core::ScriptDef::empty(), Pol::Core::INSERT_INCREASE_STACK, Pol::Items::Item::make_ref(), and Pol::Mobile::Character::make_ref().
Referenced by Pol::Module::_create_item_in_container(), Pol::Core::add_item_to_stack(), Pol::Core::drop_item_on_object(), Pol::Module::UOExecutorModule::mf_MoveItemToContainer(), Pol::Module::oldBuyHandler(), and Pol::Items::Item::script_method_id().
| bool Pol::Core::UContainer::can_swap | ( | const UContainer & | cont | ) | const |
Definition at line 328 of file containr.cpp.
References can_add_bulk(), item_count(), and weight().
Referenced by Pol::Core::change_trade_status(), and swap().
| bool Pol::Core::UContainer::check_can_remove_script | ( | Mobile::Character * | chr, |
| Items::Item * | item, | ||
| MoveType | move = MT_PLAYER |
||
| ) |
Definition at line 848 of file containr.cpp.
References Pol::Core::call_script(), Pol::Items::ContainerDesc::can_remove_script, Pol::Bscript::UninitObject::create(), desc, Pol::Core::ScriptDef::empty(), Pol::Items::Item::make_ref(), and Pol::Mobile::Character::make_ref().
Referenced by Pol::Core::get_item(), Pol::Module::UOExecutorModule::internal_MoveItem(), Pol::Module::UOExecutorModule::mf_MoveItemToContainer(), and Pol::Module::UOExecutorModule::mf_MoveItemToSecureTradeWin().
|
virtual |
This is a pretty good clone. Somewhat inefficient, but does work for derived classes that do not have data. (since it calls Item::create, virtual tables are copied)
Reimplemented from Pol::Core::ULockable.
Definition at line 921 of file containr.cpp.
References Pol::Core::ULockable::clone(), and no_drop_exception().
| void Pol::Core::UContainer::consume_sumof_objtype_noninuse | ( | u32 | objtype, |
| unsigned int | amount | ||
| ) |
Definition at line 495 of file containr.cpp.
References find_objtype_noninuse(), Pol::Items::Item::getamount(), passert_always, and Pol::Core::subtract_amount_from_item().
Referenced by Pol::Module::UOExecutorModule::mf_ConsumeSubstance(), and Pol::Mobile::Character::spend_gold().
|
inline |
Definition at line 267 of file containr.h.
Referenced by Pol::Multi::UBoat::hold_empty(), Pol::Module::send_vendorsell(), and Pol::Module::send_vendorwindow_contents().
| bool Pol::Core::UContainer::default_no_drop_exception | ( | ) | const |
Definition at line 969 of file containr.cpp.
References desc, and Pol::Items::ContainerDesc::no_drop_exception.
Referenced by printProperties(), and readProperties().
|
inline |
Definition at line 273 of file containr.h.
|
virtual |
Reimplemented from Pol::Core::UObject.
Definition at line 91 of file containr.cpp.
References Pol::Core::UObject::destroy(), and destroy_contents().
| void Pol::Core::UContainer::destroy_contents | ( | ) |
Definition at line 76 of file containr.cpp.
References contents_, and ITEM_ELEM_PTR.
Referenced by destroy().
| Pol::Core::UContainer::DYN_PROPERTY | ( | max_items_mod | , |
| s16 | , | ||
| Core::PROP_MAX_ITEMS_MOD | , | ||
| 0 | |||
| ) |
| Pol::Core::UContainer::DYN_PROPERTY | ( | max_slots_mod | , |
| s8 | , | ||
| Core::PROP_MAX_SLOTS_MOD | , | ||
| 0 | |||
| ) |
| Pol::Core::UContainer::DYN_PROPERTY | ( | max_weight_mod | , |
| s16 | , | ||
| Core::PROP_MAX_WEIGHT_MOD | , | ||
| 0 | |||
| ) |
| UContainer::iterator Pol::Core::UContainer::end | ( | ) |
Definition at line 685 of file containr.cpp.
References contents_.
Referenced by Pol::Module::_create_item_in_container(), Pol::Core::Spellbook::calc_current_bitwise_contents(), Pol::Core::drop_item_on_object(), Pol::Core::knows_spell(), Pol::Core::send_container_contents(), Pol::Module::send_vendorsell(), Pol::Mobile::Character::spellbook(), and Pol::Core::UCorpse::spill_contents().
| UContainer::const_iterator Pol::Core::UContainer::end | ( | ) | const |
Definition at line 676 of file containr.cpp.
References contents_.
| void Pol::Core::UContainer::enumerate_contents | ( | Bscript::ObjArray * | arr, |
| int | flags | ||
| ) |
Definition at line 303 of file containr.cpp.
References Pol::Bscript::ObjArray::addElement(), Pol::Core::CLASS_CONTAINER, contents_, enumerate_contents(), Pol::Core::ENUMERATE_IGNORE_LOCKED, Pol::Core::ENUMERATE_ROOT_ONLY, and Pol::Core::ULockable::locked().
Referenced by enumerate_contents().
|
virtual |
Reimplemented from Pol::Core::ULockable.
Reimplemented in Pol::Core::Spellbook, Pol::Core::UCorpse, and Pol::Core::WornItemsContainer.
Definition at line 67 of file containr.cpp.
References contents_, and Pol::Core::ULockable::estimatedSize().
Referenced by Pol::Core::WornItemsContainer::estimatedSize(), Pol::Core::UCorpse::estimatedSize(), and Pol::Core::Spellbook::estimatedSize().
| void Pol::Core::UContainer::extract | ( | Contents & | cnt | ) |
Definition at line 322 of file containr.cpp.
References add_bulk(), contents_, held_item_count_, and held_weight_.
Referenced by Pol::Mobile::Character::die(), and Pol::Core::return_traded_items().
| Items::Item * Pol::Core::UContainer::find | ( | u32 | serial | ) | const |
Definition at line 620 of file containr.cpp.
References Pol::Core::CLASS_CONTAINER, contents_, find(), Pol::Core::ULockable::locked(), and passert.
Referenced by Pol::Module::buyhandler(), Pol::Module::calculate_cost(), find(), Pol::Core::find_legal_item(), Pol::Core::find_legal_singleclick_item(), Pol::Mobile::Character::find_wornitem(), Pol::Module::oldBuyHandler(), and remove().
|
protected |
Definition at line 592 of file containr.cpp.
References Pol::Core::CLASS_CONTAINER, contents_, find(), GET_ITEM_PTR, Pol::Core::ULWObject::isa(), Pol::Core::ULockable::locked(), passert, and Pol::Core::ULWObject::serial.
| Items::Item * Pol::Core::UContainer::find_addable_stack | ( | const Items::Item * | adding_item | ) | const |
Definition at line 403 of file containr.cpp.
References contents_, Pol::Items::Item::getamount(), Pol::Items::Item::itemdesc(), Pol::Items::ItemDesc::stack_limit, and Pol::Items::Item::stackable().
Referenced by Pol::Module::UOExecutorModule::mf_MoveItemToContainer(), Pol::Module::oldBuyHandler(), on_insert_add_item(), and Pol::Items::Item::script_method_id().
| UContainer * Pol::Core::UContainer::find_container | ( | u32 | serial | ) | const |
Definition at line 575 of file containr.cpp.
References Pol::Core::CLASS_CONTAINER, contents_, find_container(), and Pol::Core::ULWObject::serial.
Referenced by Pol::Core::doubleclick(), find_container(), and Pol::Core::find_legal_container().
| bool Pol::Core::UContainer::find_empty_slot | ( | u8 & | slotIndex | ) |
Definition at line 255 of file containr.cpp.
References contents_, held_item_count_, max_items(), and max_slots().
Referenced by can_add_to_slot().
| Items::Item * Pol::Core::UContainer::find_objtype | ( | u32 | objtype, |
| int | flags | ||
| ) | const |
Definition at line 424 of file containr.cpp.
References Pol::Core::CLASS_CONTAINER, contents_, find_objtype(), find_toplevel_objtype(), Pol::Core::FINDOBJTYPE_IGNORE_LOCKED, Pol::Core::FINDOBJTYPE_ROOT_ONLY, and Pol::Core::ULockable::locked().
Referenced by find_objtype(), and Pol::Module::UOExecutorModule::mf_FindObjtypeInContainer().
| Items::Item * Pol::Core::UContainer::find_objtype_noninuse | ( | u32 | objtype | ) | const |
Definition at line 449 of file containr.cpp.
References Pol::Core::CLASS_CONTAINER, contents_, find_objtype_noninuse(), find_toplevel_objtype_noninuse(), and Pol::Core::ULockable::locked().
Referenced by Pol::Items::UWeapon::consume_projectile(), Pol::Core::USpell::consume_reagents(), consume_sumof_objtype_noninuse(), and find_objtype_noninuse().
| unsigned int Pol::Core::UContainer::find_sumof_objtype_noninuse | ( | u32 | objtype | ) | const |
Definition at line 471 of file containr.cpp.
References Pol::Core::CLASS_CONTAINER, contents_, find_sumof_objtype_noninuse(), and Pol::Core::ULockable::locked().
Referenced by find_sumof_objtype_noninuse(), Pol::Mobile::Character::gold_carried(), Pol::Module::UOExecutorModule::mf_ConsumeSubstance(), and Pol::Module::UOExecutorModule::mf_FindSubstance().
| unsigned int Pol::Core::UContainer::find_sumof_objtype_noninuse | ( | u32 | objtype, |
| u32 | amtToGet, | ||
| Contents & | saveItemsTo, | ||
| int | flags | ||
| ) | const |
Definition at line 889 of file containr.cpp.
References Pol::Core::CLASS_CONTAINER, contents_, find_sumof_objtype_noninuse(), Pol::Core::FINDSUBSTANCE_FIND_ALL, Pol::Core::FINDSUBSTANCE_IGNORE_LOCKED, Pol::Core::FINDSUBSTANCE_ROOT_ONLY, and Pol::Core::ULockable::locked().
| Items::Item * Pol::Core::UContainer::find_toplevel | ( | u32 | serial | ) | const |
Definition at line 645 of file containr.cpp.
References contents_, and passert.
Referenced by Pol::Module::oldSellHandler(), and Pol::Module::sellhandler().
| Items::Item * Pol::Core::UContainer::find_toplevel_objtype | ( | u32 | objtype | ) | const |
| Items::Item * Pol::Core::UContainer::find_toplevel_objtype | ( | u32 | objtype, |
| unsigned short | maxamount | ||
| ) | const |
Definition at line 382 of file containr.cpp.
References contents_.
| Items::Item * Pol::Core::UContainer::find_toplevel_objtype_noninuse | ( | u32 | objtype | ) | const |
Definition at line 372 of file containr.cpp.
References contents_.
Referenced by find_objtype_noninuse().
| Items::Item * Pol::Core::UContainer::find_toplevel_objtype_noninuse | ( | u32 | objtype, |
| unsigned short | maxamount | ||
| ) | const |
Definition at line 391 of file containr.cpp.
References contents_.
| Items::Item * Pol::Core::UContainer::find_toplevel_polclass | ( | unsigned int | polclass | ) | const |
Definition at line 353 of file containr.cpp.
References contents_.
Referenced by Pol::Core::handle_open_spellbook().
|
virtual |
Reimplemented in Pol::Core::WornItemsContainer.
Definition at line 659 of file containr.cpp.
References Pol::Core::CLASS_CONTAINER, contents_, for_each_item(), and Pol::Core::ULWObject::isa().
Referenced by Pol::Core::drop_item_on_ground(), Pol::Core::WornItemsContainer::for_each_item(), for_each_item(), Pol::Module::UOExecutorModule::internal_MoveContainer(), Pol::Core::StorageArea::on_delete_realm(), and Pol::Multi::UBoat::realm_changed().
|
inlinevirtual |
Reimplemented in Pol::Core::WornItemsContainer.
Definition at line 199 of file containr.h.
References DYN_PROPERTY, Pol::Core::PROP_MAX_ITEMS_MOD, Pol::Core::PROP_MAX_SLOTS_MOD, and Pol::Core::PROP_MAX_WEIGHT_MOD.
Referenced by Pol::Core::chr_from_wornitems().
Definition at line 712 of file containr.cpp.
References desc, Pol::Items::ContainerDesc::maxx, Pol::Items::ContainerDesc::maxy, Pol::Items::ContainerDesc::minx, Pol::Items::ContainerDesc::miny, and Pol::Clib::random_int().
Referenced by add_at_random_location(), Pol::Core::drop_item_on_mobile(), Pol::Core::drop_item_on_object(), Pol::Module::UOExecutorModule::mf_MoveItemToContainer(), and Pol::Module::oldSellHandler().
|
virtual |
Reimplemented from Pol::Core::ULockable.
Reimplemented in Pol::Core::UCorpse.
Definition at line 3350 of file uoscrobj.cpp.
References Pol::Bscript::getKnownObjMember(), and Pol::Bscript::ObjMember::id.
|
virtual |
Reimplemented from Pol::Core::ULockable.
Reimplemented in Pol::Core::UCorpse.
Definition at line 3326 of file uoscrobj.cpp.
References Pol::Bscript::MBR_MAX_ITEMS_MOD, Pol::Bscript::MBR_MAX_SLOTS_MOD, Pol::Bscript::MBR_MAX_WEIGHT_MOD, and Pol::Bscript::MBR_NO_DROP_EXCEPTION.
| u16 Pol::Core::UContainer::gump | ( | ) | const |
Definition at line 707 of file containr.cpp.
References desc, and Pol::Items::ContainerDesc::gump.
Referenced by Pol::Core::send_open_gump().
| bool Pol::Core::UContainer::is_legal_posn | ( | const Items::Item * | item, |
| u16 | x, | ||
| u16 | y | ||
| ) | const |
Definition at line 733 of file containr.cpp.
References desc, Pol::Items::ContainerDesc::maxy, Pol::Items::ContainerDesc::minx, and Pol::Items::ContainerDesc::miny.
Referenced by Pol::Module::UOExecutorModule::mf_MoveItemToContainer(), and Pol::Core::undo_get_item().
| bool Pol::Core::UContainer::is_slot_empty | ( | u8 & | slotIndex | ) |
Definition at line 240 of file containr.cpp.
References contents_, and held_item_count_.
Referenced by can_add_to_slot().
|
virtual |
Reimplemented from Pol::Items::Item.
Definition at line 235 of file containr.cpp.
References held_item_count_, and Pol::Items::Item::item_count().
Referenced by can_swap(), Pol::Core::change_trade_status(), and swap().
| unsigned short Pol::Core::UContainer::max_items | ( | ) | const |
Definition at line 933 of file containr.cpp.
References desc, MAX_CONTAINER_ITEMS, and Pol::Items::ContainerDesc::max_items.
Referenced by can_add_bulk(), and find_empty_slot().
| u8 Pol::Core::UContainer::max_slots | ( | ) | const |
Definition at line 952 of file containr.cpp.
References desc, MAX_SLOTS, and Pol::Items::ContainerDesc::max_slots.
Referenced by can_add_bulk(), can_add_to_slot(), and find_empty_slot().
| unsigned short Pol::Core::UContainer::max_weight | ( | ) | const |
Definition at line 940 of file containr.cpp.
References desc, and Pol::Items::ContainerDesc::max_weight.
Referenced by can_add_bulk().
| bool Pol::Core::UContainer::no_drop_exception | ( | ) | const |
Definition at line 959 of file containr.cpp.
References Pol::Core::UObject::flags_, Pol::Core::AttributeFlags< ENUM, std::enable_if< std::is_enum< ENUM >::value &&!std::is_convertible< ENUM, int >::value, int >::type >::get(), and Pol::Core::NO_DROP_EXCEPTION.
Referenced by clone(), Pol::Core::drop_item_on_object(), Pol::Core::place_item(), printProperties(), and readProperties().
| void Pol::Core::UContainer::no_drop_exception | ( | bool | newvalue | ) |
|
virtual |
Reimplemented in Pol::Core::UCorpse.
Definition at line 833 of file containr.cpp.
References Pol::Core::call_script(), Pol::Bscript::UninitObject::create(), desc, Pol::Core::ScriptDef::empty(), find_addable_stack(), Pol::Items::Item::getamount(), Pol::Core::INSERT_ADD_ITEM, Pol::Items::Item::make_ref(), Pol::Mobile::Character::make_ref(), and Pol::Items::ContainerDesc::on_insert_script.
Referenced by Pol::Module::_create_item_in_container(), Pol::Core::do_place_item_in_secure_trade_container(), Pol::Module::UOExecutorModule::mf_MoveItemToContainer(), Pol::Module::oldBuyHandler(), Pol::Core::UCorpse::on_insert_add_item(), Pol::Core::place_item_in_container(), Pol::Core::return_traded_items(), Pol::Items::Item::script_method_id(), and Pol::Core::undo_get_item().
| void Pol::Core::UContainer::on_insert_increase_stack | ( | Mobile::Character * | mob, |
| MoveType | move, | ||
| Items::Item * | existing_item, | ||
| unsigned short | amt_added | ||
| ) |
Definition at line 805 of file containr.cpp.
References Pol::Core::call_script(), Pol::Bscript::UninitObject::create(), desc, Pol::Core::ScriptDef::empty(), Pol::Core::INSERT_INCREASE_STACK, Pol::Items::Item::make_ref(), Pol::Mobile::Character::make_ref(), and Pol::Items::ContainerDesc::on_insert_script.
Referenced by Pol::Module::_create_item_in_container(), Pol::Core::add_item_to_stack(), Pol::Core::drop_item_on_object(), Pol::Module::UOExecutorModule::mf_MoveItemToContainer(), Pol::Module::oldBuyHandler(), and Pol::Items::Item::script_method_id().
| void Pol::Core::UContainer::on_remove | ( | Mobile::Character * | chr, |
| Items::Item * | item, | ||
| MoveType | move = MT_PLAYER |
||
| ) |
Definition at line 769 of file containr.cpp.
References Pol::Core::call_script(), Pol::Bscript::UninitObject::create(), desc, Pol::Core::ScriptDef::empty(), Pol::Items::Item::getamount(), and Pol::Items::ContainerDesc::on_remove_script.
Referenced by Pol::Core::get_item(), Pol::Module::UOExecutorModule::internal_MoveItem(), Pol::Module::UOExecutorModule::mf_MoveItemToContainer(), and Pol::Module::UOExecutorModule::mf_MoveItemToSecureTradeWin().
|
inlineprotected |
Definition at line 278 of file containr.h.
References ITEM_ELEM_PTR.
|
protected |
Definition at line 110 of file containr.cpp.
References contents_.
Referenced by Pol::Core::WornItemsContainer::print(), Pol::Core::Spellbook::printOn(), and printOn().
|
protectedvirtual |
Reimplemented from Pol::Core::UObject.
Reimplemented in Pol::Core::Spellbook.
Definition at line 99 of file containr.cpp.
References printContents(), and Pol::Core::UObject::printOn().
Referenced by Pol::Core::Spellbook::printOn(), and Pol::Core::Spellbook::printSelfOn().
|
virtual |
Reimplemented from Pol::Core::ULockable.
Reimplemented in Pol::Core::UCorpse, and Pol::Core::Spellbook.
Definition at line 867 of file containr.cpp.
References default_no_drop_exception(), no_drop_exception(), pf_endl, and Pol::Core::ULockable::printProperties().
Referenced by Pol::Core::Spellbook::printProperties(), and Pol::Core::UCorpse::printProperties().
|
protectedvirtual |
Reimplemented from Pol::Core::UObject.
Reimplemented in Pol::Core::Spellbook.
Definition at line 105 of file containr.cpp.
References Pol::Core::UObject::printOn().
Referenced by Pol::Core::WornItemsContainer::print().
|
virtual |
Reimplemented from Pol::Core::ULockable.
Reimplemented in Pol::Core::UCorpse, and Pol::Core::Spellbook.
Definition at line 880 of file containr.cpp.
References default_no_drop_exception(), no_drop_exception(), Pol::Core::ULockable::readProperties(), Pol::Clib::ConfigElem::remove_bool(), and Pol::Clib::ConfigElem::remove_int().
Referenced by Pol::Core::Spellbook::readProperties(), and Pol::Core::UCorpse::readProperties().
|
virtual |
Definition at line 510 of file containr.cpp.
References Pol::Items::Item::container, find(), and remove().
Referenced by Pol::Items::Item::extricate(), Pol::Module::oldBuyHandler(), Pol::Module::oldSellHandler(), Pol::Core::UCorpse::remove(), remove(), and Pol::Module::ItemGivenEvent::~ItemGivenEvent().
|
virtual |
Definition at line 526 of file containr.cpp.
References Pol::Items::Item::container, contents_, Pol::Items::Item::GetCharacterOwner(), passert_always, POLLOG, Pol::Core::send_full_statmsg(), Pol::Core::send_remove_object_to_inrange(), and Pol::Core::ULWObject::serial.
|
virtual |
Reimplemented in Pol::Core::UCorpse.
Definition at line 563 of file containr.cpp.
References Pol::Items::Item::container, contents_, GET_ITEM_PTR, INC_PROFILEVAR, remove_bulk(), Pol::Items::Item::reset_slot(), and Pol::Core::UObject::set_dirty().
| void Pol::Core::UContainer::remove_bulk | ( | const Items::Item * | item | ) |
Definition at line 210 of file containr.cpp.
References add_bulk(), and Pol::Items::Item::weight().
Referenced by remove(), and Pol::Core::WornItemsContainer::RemoveItemFromLayer().
|
virtual |
Reimplemented from Pol::Core::ULockable.
Reimplemented in Pol::Core::UCorpse, and Pol::Core::Spellbook.
Definition at line 4576 of file uoscrobj.cpp.
References Pol::Core::POLCLASS_CONTAINER.
Referenced by Pol::Core::add_loaded_item(), and Pol::Core::USpellScroll::get_senditem_amount().
|
virtual |
id test
Reimplemented from Pol::Core::ULockable.
Definition at line 3384 of file uoscrobj.cpp.
References Pol::Bscript::getKnownObjMember(), and Pol::Bscript::ObjMember::id.
|
virtual |
id test
Reimplemented from Pol::Core::ULockable.
Definition at line 3359 of file uoscrobj.cpp.
References Pol::Bscript::MBR_MAX_ITEMS_MOD, Pol::Bscript::MBR_MAX_SLOTS_MOD, Pol::Bscript::MBR_MAX_WEIGHT_MOD, and Pol::Bscript::MBR_NO_DROP_EXCEPTION.
|
virtual |
Reimplemented from Pol::Items::Item.
Reimplemented in Pol::Core::UCorpse.
Definition at line 738 of file containr.cpp.
References Pol::Core::add_item_to_world(), Pol::Items::Item::container, contents_, Pol::Core::destroy_item(), ITEM_ELEM_PTR, Pol::Items::Item::layer, Pol::Core::ULockable::locked(), Pol::Items::Item::movable(), Pol::Core::move_item(), passert, Pol::Multi::UMulti::register_object(), Pol::Core::UObject::set_dirty(), Pol::Core::ULWObject::x, Pol::Core::ULWObject::y, and Pol::Core::ULWObject::z.
Referenced by Pol::Core::UCorpse::spill_contents().
| void Pol::Core::UContainer::swap | ( | UContainer & | cont | ) |
Definition at line 340 of file containr.cpp.
References add_bulk(), can_swap(), contents_, item_count(), and weight().
Referenced by Pol::Core::change_trade_status().
| Items::Item* Pol::Core::UContainer::system_find | ( | u32 | serial | ) | const |
|
virtual |
Reimplemented from Pol::Items::Item.
Definition at line 230 of file containr.cpp.
References held_weight_, and Pol::Items::Item::weight().
Referenced by can_add_bulk(), can_swap(), Pol::Core::change_trade_status(), and swap().
|
friend |
|
friend |
|
friend |
|
friend |
Definition at line 247 of file containr.h.
|
friend |
Definition at line 254 of file containr.h.
|
protected |
Definition at line 233 of file containr.h.
Referenced by add(), begin(), can_add_bulk(), destroy_contents(), end(), enumerate_contents(), estimatedSize(), extract(), find(), find_addable_stack(), find_container(), find_empty_slot(), find_objtype(), find_objtype_noninuse(), find_sumof_objtype_noninuse(), find_toplevel(), find_toplevel_objtype(), find_toplevel_objtype_noninuse(), find_toplevel_polclass(), Pol::Core::WornItemsContainer::for_each_item(), for_each_item(), is_slot_empty(), Pol::Core::WornItemsContainer::print(), printContents(), Pol::Core::WornItemsContainer::PutItemOnLayer(), remove(), Pol::Core::WornItemsContainer::RemoveItemFromLayer(), spill_contents(), swap(), Pol::Core::WornItemsContainer::WornItemsContainer(), and ~UContainer().
|
protected |
Definition at line 235 of file containr.h.
Referenced by can_insert_add_item(), can_insert_increase_stack(), check_can_remove_script(), default_no_drop_exception(), get_random_location(), gump(), is_legal_posn(), max_items(), max_slots(), max_weight(), on_insert_add_item(), on_insert_increase_stack(), and on_remove().
|
protected |
Definition at line 238 of file containr.h.
Referenced by add_bulk(), can_add_bulk(), extract(), find_empty_slot(), is_slot_empty(), and item_count().
|
protected |
Definition at line 237 of file containr.h.
Referenced by add_bulk(), can_add_bulk(), extract(), and weight().