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

Variable Index

 o detectDifficulty
 o disarmDifficulty
 o disarmed
 o effectClassname
 o host
 o triggered

Constructor Index

 o Trap()
Protected constructor.

Method Index

 o arm()
Arm the trap.
 o createRows()
Create the rows needed to store this trap
 o createTrap()
Factory method to get a new trap object.
 o disarm()
Disarm the trap.
 o getDetectDifficulty()
Get the detection difficulty
 o getDisarmDifficulty()
Get the disarm difficulty
 o getEffectClassname()
Get the efffect classname
 o getHost()
Get the trap host
 o init()
Initializer for new trap objects.
 o isArmed()
Is the trap armed?
 o isTriggered()
Has the trap been triggered?
 o load()
Load the data from the database into a Trap object
 o loadTrap(int)
Load a trap object
 o main(String[])
Tester
 o setDetectDifficulty(int)
Set the detection difficulty
 o setDisarmDifficulty(int)
Set the disarm difficulty
 o setEffectClassname(String)
Set the effect classname
 o setHost(GameObject)
Set the trap host
 o setTriggered(boolean)
Set the trap triggered status.
 o store()
Store the trap
 o trigger(PC)
Trigger the trap
 o unregister()
Unregister the Trap from the database

Variables

 o triggered
 protected boolean triggered
 o disarmed
 protected boolean disarmed
 o detectDifficulty
 protected int detectDifficulty
 o disarmDifficulty
 protected int disarmDifficulty
 o effectClassname
 protected String effectClassname
 o host
 protected GameObject host

Constructors

 o Trap
 protected Trap()
Protected constructor. Use factory methods instead.

Methods

 o createTrap
 public static Trap createTrap()
Factory method to get a new trap object.

 o init
 protected void init()
Initializer for new trap objects.

Overrides:
init in class Immobile
 o isTriggered
 public boolean isTriggered()
Has the trap been triggered?

 o setTriggered
 public void setTriggered(boolean status)
Set the trap triggered status.

 o isArmed
 public boolean isArmed()
Is the trap armed?

 o arm
 public void arm()
Arm the trap.

 o disarm
 public void disarm()
Disarm the trap.

 o getDetectDifficulty
 public int getDetectDifficulty()
Get the detection difficulty

 o setDetectDifficulty
 public void setDetectDifficulty(int diff)
Set the detection difficulty

 o getDisarmDifficulty
 public int getDisarmDifficulty()
Get the disarm difficulty

 o setDisarmDifficulty
 public void setDisarmDifficulty(int diff)
Set the disarm difficulty

 o getEffectClassname
 public String getEffectClassname()
Get the efffect classname

 o setEffectClassname
 public void setEffectClassname(String effect)
Set the effect classname

 o getHost
 public GameObject getHost()
Get the trap host

 o setHost
 public void setHost(GameObject host)
Set the trap host

 o trigger
 public void trigger(PC victim)
Trigger the trap

 o createRows
 protected void createRows()
Create the rows needed to store this trap

Overrides:
createRows in class Immobile
 o store
 public void store()
Store the trap

Overrides:
store in class Immobile
 o loadTrap
 public static Trap loadTrap(int id)
Load a trap object

 o load
 protected void load()
Load the data from the database into a Trap object

Overrides:
load in class Immobile
 o unregister
 public void unregister()
Unregister the Trap from the database

Overrides:
unregister in class Immobile
 o main
 public static void main(String args[])
Tester


All Packages  Class Hierarchy  This Package  Previous  Next  Index