Table of Contents

Class: Key mudlib/door.py

This is a basic key for unlocking/locking a door.

To match a specific door to a specific key, use the setKeyCombination method.

Base Classes   
core.Object
Methods   
createKey
createObject
destroyKey
destroyObject
getKeyCombination
setKeyCombination
  createKey 
createKey ( self )

  createObject 
createObject ( self )

  destroyKey 
destroyKey ( self )

  destroyObject 
destroyObject ( self )

  getKeyCombination 
getKeyCombination ( self )

Returns the combination for the key.

returns:

(string) the combination for this key.

  setKeyCombination 
setKeyCombination ( self,  keyCombo )

Sets the combination for the key.

This matches the key to a specific lock on a door or other locked object.

arguments:

keyCombo
(string) the combination for this key--a unique id of sorts

Table of Contents

This document was automatically generated on Thu Jan 24 08:57:43 2002 by HappyDoc version 2.0