|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object wyvern.kernel.properties.PList wyvern.lib.classes.construct.Lock
A lock that can be placed on chests, doors, or other objects. If you set a code on the lock, then only keys with that code can open it, and it can't be picked or magically unlocked. If there's no code, then the lock level determines how hard it is to pick it.
Field Summary |
Fields inherited from class wyvern.kernel.properties.PList |
readOnly_ |
Fields inherited from interface wyvern.lib.PropertyList |
PROPERTY_PACKAGE |
Constructor Summary | |
Lock()
Constructs a new Lock with no code |
|
Lock(int code)
Constructs a new Lock |
Method Summary | |
int |
getCode()
Returns the 32-bit code that opens this lock. |
int |
getLockLevel()
Returns how difficult the lock is to pick on a 0-100 scale. |
void |
setCode(int code)
Sets the 32-bit combination that opens the lock. |
void |
setLockLevel(int lockLevel)
Sets the lockLevel level for the lock, from 0-100. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public Lock()
public Lock(int code)
Method Detail |
public int getCode()
public void setCode(int code)
code
- the lock codepublic int getLockLevel()
public void setLockLevel(int lockLevel)
lockLevel
- the lock lockLevel
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |