Pol  Rev 533
UCorpse Class Reference

#include <containr.h>

+ Inheritance diagram for UCorpse:
+ Collaboration diagram for UCorpse:

List of all members.

Public Member Functions

virtual u16 get_senditem_amount () const
ItemGetItemOnLayer (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 BObjectImpget_script_member (const char *membername) const
virtual BObjectImpget_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

ItemItem::create (const ItemDesc &itemdesc, u32 serial)

Detailed Description

Definition at line 204 of file containr.h.


Member Typedef Documentation

typedef UContainer UCorpse::base [private]

Reimplemented from UContainer.

Definition at line 206 of file containr.h.


Constructor & Destructor Documentation

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


Member Function Documentation

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]

Reimplemented from Item.

Definition at line 34 of file corpse.cpp.

References corpsetype.

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]

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:


Friends And Related Function Documentation

Item* Item::create ( const ItemDesc itemdesc,
u32  serial 
) [friend]

Reimplemented from UContainer.


Member Data Documentation

Definition at line 227 of file containr.h.

Referenced by GetItemOnLayer(), PutItemOnLayer(), RemoveItemFromLayer(), and UCorpse().


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