|
Pol
Rev 533
|
#include <lockable.h>
Inheritance diagram for ULockable:
Collaboration diagram for ULockable:Public Member Functions | |
| bool | locked () const |
Protected Member Functions | |
| ULockable (const ItemDesc &itemdesc, UOBJ_CLASS uobj_class) | |
| virtual Item * | clone () const |
| virtual class BObjectImp * | get_script_member (const char *membername) const |
| virtual class 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 |
| virtual class BObjectImp * | set_script_member (const char *membername, int value) |
| id test | |
| virtual class BObjectImp * | set_script_member_id (const int id, int value) |
| id test | |
Protected Attributes | |
| bool | locked_ |
Private Types | |
| typedef Item | base |
Friends | |
| class | Item |
Definition at line 16 of file lockable.h.
typedef Item ULockable::base [private] |
Reimplemented from Item.
Reimplemented in UCorpse, UContainer, UDoor, and UPlank.
Definition at line 18 of file lockable.h.
| ULockable::ULockable | ( | const ItemDesc & | itemdesc, |
| UOBJ_CLASS | uobj_class | ||
| ) | [explicit, protected] |
Definition at line 16 of file lockable.cpp.
| Item * ULockable::clone | ( | ) | const [protected, virtual] |
Reimplemented from Item.
Definition at line 37 of file lockable.cpp.
References Item::clone(), and locked_.
Here is the call graph for this function:| BObjectImp * ULockable::get_script_member | ( | const char * | membername | ) | const [protected, virtual] |
Reimplemented from Item.
Reimplemented in UCorpse, UDoor, and UPlank.
Definition at line 2538 of file uoscrobj.cpp.
References get_script_member_id(), getKnownObjMember(), and ObjMember::id.
Referenced by UPlank::get_script_member().
Here is the call graph for this function:
Here is the caller graph for this function:| BObjectImp * ULockable::get_script_member_id | ( | const int | id | ) | const [protected, virtual] |
Reimplemented from Item.
Reimplemented in UCorpse, UDoor, and UPlank.
Definition at line 2525 of file uoscrobj.cpp.
References locked_, and MBR_LOCKED.
Referenced by get_script_member(), UPlank::get_script_member_id(), and UCorpse::get_script_member_id().
Here is the caller graph for this function:| bool ULockable::locked | ( | ) | const [inline] |
Definition at line 38 of file lockable.h.
References locked_.
Referenced by doubleclick().
Here is the caller graph for this function:| void ULockable::printProperties | ( | std::ostream & | os | ) | const [protected, virtual] |
Reimplemented from Item.
Reimplemented in UCorpse, and Spellbook.
Definition at line 28 of file lockable.cpp.
References locked_, pf_endl, and Item::printProperties().
Referenced by Spellbook::printProperties(), and UCorpse::printProperties().
Here is the call graph for this function:
Here is the caller graph for this function:| void ULockable::readProperties | ( | ConfigElem & | elem | ) | [protected, virtual] |
Reimplemented from Item.
Reimplemented in UCorpse, UContainer, and Spellbook.
Definition at line 22 of file lockable.cpp.
References locked_, Item::readProperties(), and ConfigElem::remove_bool().
Referenced by Spellbook::readProperties(), and UContainer::readProperties().
Here is the call graph for this function:
Here is the caller graph for this function:| bool ULockable::script_isa | ( | unsigned | isatype | ) | const [protected, virtual] |
Reimplemented from Item.
Reimplemented in UCorpse, UContainer, Spellbook, and UDoor.
Definition at line 3675 of file uoscrobj.cpp.
References POLCLASS_LOCKABLE, and Item::script_isa().
Referenced by UDoor::script_isa(), Spellbook::script_isa(), and UContainer::script_isa().
Here is the call graph for this function:
Here is the caller graph for this function:| BObjectImp * ULockable::set_script_member | ( | const char * | membername, |
| int | value | ||
| ) | [protected, virtual] |
id test
Reimplemented from Item.
Definition at line 2558 of file uoscrobj.cpp.
References getKnownObjMember(), ObjMember::id, and set_script_member_id().
Here is the call graph for this function:| BObjectImp * ULockable::set_script_member_id | ( | const int | id, |
| int | value | ||
| ) | [protected, virtual] |
id test
Reimplemented from Item.
Definition at line 2547 of file uoscrobj.cpp.
References locked_, and MBR_LOCKED.
Referenced by set_script_member().
Here is the caller graph for this function:friend class Item [friend] |
Reimplemented in Spellbook, and UDoor.
Definition at line 35 of file lockable.h.
bool ULockable::locked_ [protected] |
Definition at line 22 of file lockable.h.
Referenced by UDoor::builtin_on_use(), UContainer::builtin_on_use(), clone(), UContainer::enumerate_contents(), UContainer::find(), UContainer::find_objtype_noninuse(), UContainer::find_sumof_objtype_noninuse(), get_script_member_id(), locked(), printProperties(), readProperties(), Spellbook::send_book_old(), set_script_member_id(), and UContainer::spill_contents().