Pol  Rev 533
ULockable Class Reference

#include <lockable.h>

+ Inheritance diagram for ULockable:
+ Collaboration diagram for ULockable:

List of all members.

Public Member Functions

bool locked () const

Protected Member Functions

 ULockable (const ItemDesc &itemdesc, UOBJ_CLASS uobj_class)
virtual Itemclone () const
virtual class BObjectImpget_script_member (const char *membername) const
virtual class 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
virtual class BObjectImpset_script_member (const char *membername, int value)
 id test
virtual class BObjectImpset_script_member_id (const int id, int value)
 id test

Protected Attributes

bool locked_

Private Types

typedef Item base

Friends

class Item

Detailed Description

Definition at line 16 of file lockable.h.


Member Typedef Documentation

typedef Item ULockable::base [private]

Reimplemented from Item.

Reimplemented in UCorpse, UContainer, UDoor, and UPlank.

Definition at line 18 of file lockable.h.


Constructor & Destructor Documentation

ULockable::ULockable ( const ItemDesc itemdesc,
UOBJ_CLASS  uobj_class 
) [explicit, protected]

Definition at line 16 of file lockable.cpp.


Member Function Documentation

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:


Friends And Related Function Documentation

friend class Item [friend]

Reimplemented in Spellbook, and UDoor.

Definition at line 35 of file lockable.h.


Member Data Documentation


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