This is a basic key for unlocking/locking a door.
To match a specific door to a specific key, use the setKeyCombination
method.
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
|
|