All Packages Class Hierarchy This Package Previous Next Index
Class sso.Trap
java.lang.Object
|
+----sso.Persistant
|
+----sso.GameObject
|
+----sso.Immobile
|
+----sso.Trap
- public class Trap
- extends Immobile
-
detectDifficulty
-
-
disarmDifficulty
-
-
disarmed
-
-
effectClassname
-
-
host
-
-
triggered
-
-
Trap()
- Protected constructor.
-
arm()
- Arm the trap.
-
createRows()
- Create the rows needed to store this trap
-
createTrap()
- Factory method to get a new trap object.
-
disarm()
- Disarm the trap.
-
getDetectDifficulty()
- Get the detection difficulty
-
getDisarmDifficulty()
- Get the disarm difficulty
-
getEffectClassname()
- Get the efffect classname
-
getHost()
- Get the trap host
-
init()
- Initializer for new trap objects.
-
isArmed()
- Is the trap armed?
-
isTriggered()
- Has the trap been triggered?
-
load()
- Load the data from the database into a Trap object
-
loadTrap(int)
- Load a trap object
-
main(String[])
- Tester
-
setDetectDifficulty(int)
- Set the detection difficulty
-
setDisarmDifficulty(int)
- Set the disarm difficulty
-
setEffectClassname(String)
- Set the effect classname
-
setHost(GameObject)
- Set the trap host
-
setTriggered(boolean)
- Set the trap triggered status.
-
store()
- Store the trap
-
trigger(PC)
- Trigger the trap
-
unregister()
- Unregister the Trap from the database
triggered
protected boolean triggered
disarmed
protected boolean disarmed
detectDifficulty
protected int detectDifficulty
disarmDifficulty
protected int disarmDifficulty
effectClassname
protected String effectClassname
host
protected GameObject host
Trap
protected Trap()
- Protected constructor. Use factory methods instead.
createTrap
public static Trap createTrap()
- Factory method to get a new trap object.
init
protected void init()
- Initializer for new trap objects.
- Overrides:
- init in class Immobile
isTriggered
public boolean isTriggered()
- Has the trap been triggered?
setTriggered
public void setTriggered(boolean status)
- Set the trap triggered status.
isArmed
public boolean isArmed()
- Is the trap armed?
arm
public void arm()
- Arm the trap.
disarm
public void disarm()
- Disarm the trap.
getDetectDifficulty
public int getDetectDifficulty()
- Get the detection difficulty
setDetectDifficulty
public void setDetectDifficulty(int diff)
- Set the detection difficulty
getDisarmDifficulty
public int getDisarmDifficulty()
- Get the disarm difficulty
setDisarmDifficulty
public void setDisarmDifficulty(int diff)
- Set the disarm difficulty
getEffectClassname
public String getEffectClassname()
- Get the efffect classname
setEffectClassname
public void setEffectClassname(String effect)
- Set the effect classname
getHost
public GameObject getHost()
- Get the trap host
setHost
public void setHost(GameObject host)
- Set the trap host
trigger
public void trigger(PC victim)
- Trigger the trap
createRows
protected void createRows()
- Create the rows needed to store this trap
- Overrides:
- createRows in class Immobile
store
public void store()
- Store the trap
- Overrides:
- store in class Immobile
loadTrap
public static Trap loadTrap(int id)
- Load a trap object
load
protected void load()
- Load the data from the database into a Trap object
- Overrides:
- load in class Immobile
unregister
public void unregister()
- Unregister the Trap from the database
- Overrides:
- unregister in class Immobile
main
public static void main(String args[])
- Tester
All Packages Class Hierarchy This Package Previous Next Index