|
Pol
Rev 533
|
#include <containr.h>
Inheritance diagram for UCorpse:
Collaboration diagram for UCorpse:Public Member Functions | |
| virtual u16 | get_senditem_amount () const |
| Item * | GetItemOnLayer (unsigned idx) const |
| void | PutItemOnLayer (Item *item) |
| void | RemoveItemFromLayer (Item *item) |
Public Attributes | |
| u16 | corpsetype |
| u32 | ownerserial |
| bool | take_contents_to_grave |
Protected Member Functions | |
| UCorpse (const ContainerDesc &desc) | |
| virtual BObjectImp * | get_script_member (const char *membername) const |
| virtual BObjectImp * | get_script_member_id (const int id) const |
| virtual void | printProperties (std::ostream &os) const |
| virtual void | readProperties (ConfigElem &elem) |
| virtual bool | script_isa (unsigned isatype) const |
| id test | |
| virtual void | spill_contents (UMulti *supporting_multi) |
Protected Attributes | |
| Contents | layer_list_ |
Private Types | |
| typedef UContainer | base |
Friends | |
| Item * | Item::create (const ItemDesc &itemdesc, u32 serial) |
Definition at line 204 of file containr.h.
typedef UContainer UCorpse::base [private] |
Reimplemented from UContainer.
Definition at line 206 of file containr.h.
| UCorpse::UCorpse | ( | const ContainerDesc & | desc | ) | [explicit, protected] |
Definition at line 25 of file corpse.cpp.
References EMPTY_ELEM, HIGHEST_LAYER, layer_list_, and Item::movable_.
| BObjectImp * UCorpse::get_script_member | ( | const char * | membername | ) | const [protected, virtual] |
Reimplemented from ULockable.
Definition at line 2581 of file uoscrobj.cpp.
References get_script_member_id(), getKnownObjMember(), and ObjMember::id.
Here is the call graph for this function:| BObjectImp * UCorpse::get_script_member_id | ( | const int | id | ) | const [protected, virtual] |
Reimplemented from ULockable.
Definition at line 2567 of file uoscrobj.cpp.
References corpsetype, ULockable::get_script_member_id(), MBR_CORPSETYPE, MBR_OWNERSERIAL, and ownerserial.
Referenced by get_script_member().
Here is the call graph for this function:
Here is the caller graph for this function:| u16 UCorpse::get_senditem_amount | ( | ) | const [virtual] |
| Item * UCorpse::GetItemOnLayer | ( | unsigned | idx | ) | const [inline] |
Definition at line 230 of file containr.h.
References ITEM_ELEM_PTR, and layer_list_.
Referenced by Character::die(), UContainer::on_insert_add_item(), and UContainer::on_remove().
Here is the caller graph for this function:| void UCorpse::printProperties | ( | std::ostream & | os | ) | const [protected, virtual] |
Reimplemented from ULockable.
Definition at line 77 of file corpse.cpp.
References corpsetype, ownerserial, pf_endl, ULockable::printProperties(), and take_contents_to_grave.
Here is the call graph for this function:| void UCorpse::PutItemOnLayer | ( | Item * | item | ) |
Definition at line 60 of file corpse.cpp.
References UContainer::add_bulk(), Item::layer, layer_list_, UObject::set_dirty(), and Item::tile_layer.
Referenced by Character::die(), and UContainer::on_insert_add_item().
Here is the call graph for this function:
Here is the caller graph for this function:| void UCorpse::readProperties | ( | ConfigElem & | elem | ) | [protected, virtual] |
Reimplemented from UContainer.
Definition at line 85 of file corpse.cpp.
References UObject::color, corpsetype, Item::movable_, ownerserial, UContainer::readProperties(), ConfigElem::remove_bool(), ConfigElem::remove_prop(), ConfigElem::remove_ushort(), and take_contents_to_grave.
Here is the call graph for this function:| void UCorpse::RemoveItemFromLayer | ( | Item * | item | ) |
Definition at line 69 of file corpse.cpp.
References EMPTY_ELEM, Item::layer, layer_list_, UObject::set_dirty(), and Item::tile_layer.
Referenced by UContainer::on_remove().
Here is the call graph for this function:
Here is the caller graph for this function:| bool UCorpse::script_isa | ( | unsigned | isatype | ) | const [protected, virtual] |
id test
Reimplemented from UContainer.
Definition at line 3685 of file uoscrobj.cpp.
References POLCLASS_CORPSE, and UContainer::script_isa().
Here is the call graph for this function:| void UCorpse::spill_contents | ( | UMulti * | supporting_multi | ) | [protected, virtual] |
Reimplemented from UContainer.
Definition at line 39 of file corpse.cpp.
References UContainer::begin(), destroy_item(), UContainer::end(), GET_ITEM_PTR, LAYER_BEARD, LAYER_FACE, LAYER_HAIR, UContainer::spill_contents(), take_contents_to_grave, and Item::tile_layer.
Here is the call graph for this function:| Item* Item::create | ( | const ItemDesc & | itemdesc, |
| u32 | serial | ||
| ) | [friend] |
Reimplemented from UContainer.
Definition at line 209 of file containr.h.
Referenced by Character::die(), get_script_member_id(), get_senditem_amount(), printProperties(), and readProperties().
Contents UCorpse::layer_list_ [protected] |
Definition at line 227 of file containr.h.
Referenced by GetItemOnLayer(), PutItemOnLayer(), RemoveItemFromLayer(), and UCorpse().
Definition at line 211 of file containr.h.
Referenced by Character::die(), get_script_member_id(), printProperties(), and readProperties().
Definition at line 210 of file containr.h.
Referenced by Character::die(), printProperties(), readProperties(), and spill_contents().