All Packages Class Hierarchy This Package Previous Next Index
Class sso.Lock
java.lang.Object
|
+----sso.Persistant
|
+----sso.GameObject
|
+----sso.Immobile
|
+----sso.Lock
- public class Lock
- extends Immobile
-
host
-
-
key
-
-
lockDifficulty
-
-
locked
-
-
picklockSkill
-
-
trap
-
-
Lock()
- Protected constructor.
-
createLock()
- Public Factory Method.
-
createRows()
- Create the rows needed to store the Lock
-
getHost()
- Get the lock host
-
getKey()
- Get the lock's key
-
getLockDifficulty()
- Get the lock difficulty
-
getTrap()
- Get the trap for this lock
-
init()
- Initializer for new locks.
-
isLocked()
- Is the lock locked?
-
isTrapped()
- Is the object trapped?
-
load()
- Load lock object data from the database
-
loadLock(int)
- Load a Lock object
-
lock(PC, Thing)
- Attempt to lock the lock
-
main(String[])
- Tester
-
pickLock(PC)
- Attempt to pick the lock
-
setHost(GameObject)
- Set the lock host
-
setKey(Thing)
- Set the lock's key
-
setLockDifficulty(int)
- Set the lock difficulty
-
setLocked(boolean)
- Set the lock's locked status
-
setTrap(Trap)
- Set the trap object for this lock
-
store()
- Store the Lock object
-
unlock(PC, Thing)
- Attempt to unlock the lock
-
unregister()
- Unregister the lock object
locked
protected boolean locked
key
protected Thing key
lockDifficulty
protected int lockDifficulty
host
protected GameObject host
trap
protected Trap trap
picklockSkill
public static final String picklockSkill
Lock
protected Lock()
- Protected constructor. Use factory method for new lock.
createLock
public static Lock createLock()
- Public Factory Method. Get a new Lock object.
init
protected void init()
- Initializer for new locks.
- Overrides:
- init in class Immobile
isLocked
public boolean isLocked()
- Is the lock locked?
setLocked
public void setLocked(boolean locked)
- Set the lock's locked status
getKey
public Thing getKey()
- Get the lock's key
setKey
public void setKey(Thing key)
- Set the lock's key
getLockDifficulty
public int getLockDifficulty()
- Get the lock difficulty
setLockDifficulty
public void setLockDifficulty(int diff)
- Set the lock difficulty
getHost
public GameObject getHost()
- Get the lock host
setHost
public void setHost(GameObject go)
- Set the lock host
getTrap
public Trap getTrap()
- Get the trap for this lock
isTrapped
public boolean isTrapped()
- Is the object trapped?
setTrap
public void setTrap(Trap trap)
- Set the trap object for this lock
pickLock
public boolean pickLock(PC victim)
- Attempt to pick the lock
lock
public boolean lock(PC victim,
Thing o_key)
- Attempt to lock the lock
unlock
public boolean unlock(PC victim,
Thing o_key)
- Attempt to unlock the lock
createRows
protected void createRows()
- Create the rows needed to store the Lock
- Overrides:
- createRows in class Immobile
store
public void store()
- Store the Lock object
- Overrides:
- store in class Immobile
loadLock
public static Lock loadLock(int id)
- Load a Lock object
load
protected void load()
- Load lock object data from the database
- Overrides:
- load in class Immobile
unregister
public void unregister()
- Unregister the lock object
- Overrides:
- unregister in class Immobile
main
public static void main(String args[])
- Tester
All Packages Class Hierarchy This Package Previous Next Index