All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class sso.Resistance

java.lang.Object
   |
   +----sso.Persistant
           |
           +----sso.Resistance

public class Resistance
extends Persistant

Variable Index

 o BLIND
 o COLD
 o DISEASE
 o FIRE
 o LIGHTNING
 o MAGIC
 o PARALYZE
 o PHYSICAL
 o propertyChangeListeners
 o PSIONIC
 o resistance_percentage
 o resistance_type

Constructor Index

 o Resistance()
Constructor.

Method Index

 o addPropertyChangeListener(PropertyChangeListener)
Add a property change listener.
 o createResistance()
Factory method.
 o createRows()
Create a database entry for this object.
 o getResistancePercentage()
Gets resistance percentage.
 o getResistanceType()
Gets resistance type.
 o init()
Initialization for factory method.
 o load()
Load the resistance object.
 o loadResistance(int)
Load the resistance object.
 o propChange(String)
Fire a property change event.
 o removePropertyChangeListener(PropertyChangeListener)
Remove a listener.
 o setResistancePercentage(int)
Gets resistance percentage.
 o setResistanceType(int)
Sets resistance type.
 o Store()
Save the Resistance object.
 o unregister()
Remove resistance from database.

Variables

 o resistance_type
 protected int resistance_type
 o resistance_percentage
 protected int resistance_percentage
 o propertyChangeListeners
 protected Vector propertyChangeListeners
 o PHYSICAL
 public static final int PHYSICAL
 o PSIONIC
 public static final int PSIONIC
 o MAGIC
 public static final int MAGIC
 o BLIND
 public static final int BLIND
 o DISEASE
 public static final int DISEASE
 o PARALYZE
 public static final int PARALYZE
 o FIRE
 public static final int FIRE
 o COLD
 public static final int COLD
 o LIGHTNING
 public static final int LIGHTNING

Constructors

 o Resistance
 protected Resistance()
Constructor. Only called by factory methods.

Methods

 o createResistance
 public static Resistance createResistance()
Factory method. Create a new Resistance object.

 o init
 protected void init()
Initialization for factory method.

Overrides:
init in class Persistant
 o getResistanceType
 public int getResistanceType()
Gets resistance type.

 o setResistanceType
 public void setResistanceType(int resistance_type)
Sets resistance type.

 o getResistancePercentage
 public int getResistancePercentage()
Gets resistance percentage.

 o setResistancePercentage
 public void setResistancePercentage(int perc)
Gets resistance percentage.

 o createRows
 protected void createRows()
Create a database entry for this object.

Overrides:
createRows in class Persistant
 o Store
 public void Store()
Save the Resistance object.

 o loadResistance
 public static Resistance loadResistance(int id)
Load the resistance object.

 o load
 protected void load()
Load the resistance object. Internals.

Overrides:
load in class Persistant
 o unregister
 public void unregister()
Remove resistance from database.

Overrides:
unregister in class Persistant
 o addPropertyChangeListener
 public void addPropertyChangeListener(PropertyChangeListener pl)
Add a property change listener.

 o removePropertyChangeListener
 public void removePropertyChangeListener(PropertyChangeListener pl)
Remove a listener.

 o propChange
 protected void propChange(String prop)
Fire a property change event.


All Packages  Class Hierarchy  This Package  Previous  Next  Index