Pol  Rev 533
WornItemsContainer Class Reference

#include <containr.h>

+ Inheritance diagram for WornItemsContainer:
+ Collaboration diagram for WornItemsContainer:

List of all members.

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

Detailed Description

Definition at line 235 of file containr.h.


Constructor & Destructor Documentation


Member Function Documentation

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]

Reimplemented from UContainer.

Definition at line 242 of file containr.h.

References chr_owner.

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:

Reimplemented from Item.

Definition at line 1024 of file containr.cpp.

References chr_owner.

const UObject * WornItemsContainer::owner ( ) const [virtual]

Reimplemented from Item.

Definition at line 1029 of file containr.cpp.

References chr_owner.

void WornItemsContainer::print ( std::ostream &  ofs_pc,
std::ostream &  ofs_equip 
) const

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:

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_.

Reimplemented from UObject.

Definition at line 1034 of file containr.cpp.

References chr_owner.

const UObject * WornItemsContainer::self_as_owner ( ) const [virtual]

Reimplemented from UObject.

Definition at line 1039 of file containr.cpp.

References chr_owner.

Definition at line 926 of file containr.cpp.

Referenced by Character::Character().

+ Here is the caller graph for this function:


Member Data Documentation


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