|
Pol
Rev 533
|
#include <containr.h>
Inheritance diagram for WornItemsContainer:
Collaboration diagram for WornItemsContainer:Public Member Functions | |
| WornItemsContainer () | |
| virtual void | for_each_item (void(*f)(Item *item, void *a), void *arg) |
| virtual Character * | get_chr_owner () |
| Item * | GetItemOnLayer (unsigned idx) const |
| virtual BObjectImp * | make_ref () |
| virtual UObject * | owner () |
| virtual const UObject * | owner () const |
| void | print (std::ostream &ofs_pc, std::ostream &ofs_equip) const |
| void | PutItemOnLayer (Item *item) |
| void | RemoveItemFromLayer (Item *item) |
| virtual bool | saveonexit () const |
| virtual void | saveonexit (bool newvalue) |
| virtual UObject * | self_as_owner () |
| virtual const UObject * | self_as_owner () const |
| void | SetInitialSize () |
Public Attributes | |
| Character * | chr_owner |
Definition at line 235 of file containr.h.
Definition at line 914 of file containr.cpp.
References UContainer::contents_, EMPTY_ELEM, and HIGHEST_LAYER.
| void WornItemsContainer::for_each_item | ( | void(*)(Item *item, void *a) | f, |
| void * | arg | ||
| ) | [virtual] |
Reimplemented from UContainer.
Definition at line 930 of file containr.cpp.
References UContainer::begin(), UObject::CLASS_CONTAINER, UContainer::end(), UContainer::for_each_item(), GET_ITEM_PTR, and UObject::isa().
Referenced by Character::realm_changed().
Here is the call graph for this function:
Here is the caller graph for this function:| virtual Character* WornItemsContainer::get_chr_owner | ( | ) | [inline, virtual] |
| Item * WornItemsContainer::GetItemOnLayer | ( | unsigned | idx | ) | const [inline] |
Definition at line 263 of file containr.h.
References UContainer::contents_, and ITEM_ELEM_PTR.
Referenced by Character::attack(), Character::backpack(), Character::die(), Character::find_wornitem(), Character::is_equipped(), Character::layer_is_equipped(), NPC::refresh_ar(), Character::refresh_ar(), Character::resurrect(), and Character::wornitem().
Here is the caller graph for this function:| BObjectImp * WornItemsContainer::make_ref | ( | ) | [virtual] |
Reimplemented from Item.
Definition at line 1018 of file containr.cpp.
References chr_owner, Character::make_offline_ref(), and passert_always.
Here is the call graph for this function:| UObject * WornItemsContainer::owner | ( | ) | [virtual] |
| const UObject * WornItemsContainer::owner | ( | ) | const [virtual] |
| void WornItemsContainer::print | ( | std::ostream & | ofs_pc, |
| std::ostream & | ofs_equip | ||
| ) | const |
Definition at line 978 of file containr.cpp.
References UObject::clear_dirty(), UContainer::contents_, dont_save_itemtype(), Item::layer, LAYER_BACKPACK, LAYER_BEARD, LAYER_FACE, LAYER_HAIR, LAYER_ROBE_DRESS, UObject::objtype_, UContainer::printContents(), Item::saveonexit(), saveonexit(), and UOBJ_DEATH_SHROUD.
Referenced by Character::printWornItems().
Here is the call graph for this function:
Here is the caller graph for this function:| void WornItemsContainer::PutItemOnLayer | ( | Item * | item | ) |
Definition at line 958 of file containr.cpp.
References UContainer::add_bulk(), Item::container, UContainer::contents_, Item::layer, UObject::realm, UObject::set_dirty(), and Item::tile_layer.
Referenced by Character::equip().
Here is the call graph for this function:
Here is the caller graph for this function:| void WornItemsContainer::RemoveItemFromLayer | ( | Item * | item | ) |
Definition at line 968 of file containr.cpp.
References Item::container, UContainer::contents_, EMPTY_ELEM, Item::layer, UContainer::remove_bulk(), UObject::set_dirty(), and Item::tile_layer.
Referenced by Character::unequip().
Here is the call graph for this function:
Here is the caller graph for this function:| bool WornItemsContainer::saveonexit | ( | ) | const [virtual] |
Reimplemented from Item.
Definition at line 948 of file containr.cpp.
References UObject::saveonexit_.
Referenced by print().
Here is the caller graph for this function:| void WornItemsContainer::saveonexit | ( | bool | newvalue | ) | [virtual] |
Reimplemented from Item.
Definition at line 953 of file containr.cpp.
References UObject::saveonexit_.
| UObject * WornItemsContainer::self_as_owner | ( | ) | [virtual] |
| const UObject * WornItemsContainer::self_as_owner | ( | ) | const [virtual] |
| void WornItemsContainer::SetInitialSize | ( | ) |
Definition at line 926 of file containr.cpp.
Referenced by Character::Character().
Here is the caller graph for this function:Definition at line 242 of file containr.h.
Referenced by Character::Character(), get_chr_owner(), make_ref(), owner(), and self_as_owner().