All Packages Class Hierarchy This Package Previous Next Index
Class sso.Resistance
java.lang.Object
|
+----sso.Persistant
|
+----sso.Resistance
- public class Resistance
- extends Persistant
-
BLIND
-
-
COLD
-
-
DISEASE
-
-
FIRE
-
-
LIGHTNING
-
-
MAGIC
-
-
PARALYZE
-
-
PHYSICAL
-
-
propertyChangeListeners
-
-
PSIONIC
-
-
resistance_percentage
-
-
resistance_type
-
-
Resistance()
- Constructor.
-
addPropertyChangeListener(PropertyChangeListener)
- Add a property change listener.
-
createResistance()
- Factory method.
-
createRows()
- Create a database entry for this object.
-
getResistancePercentage()
- Gets resistance percentage.
-
getResistanceType()
- Gets resistance type.
-
init()
- Initialization for factory method.
-
load()
- Load the resistance object.
-
loadResistance(int)
- Load the resistance object.
-
propChange(String)
- Fire a property change event.
-
removePropertyChangeListener(PropertyChangeListener)
- Remove a listener.
-
setResistancePercentage(int)
- Gets resistance percentage.
-
setResistanceType(int)
- Sets resistance type.
-
Store()
- Save the Resistance object.
-
unregister()
- Remove resistance from database.
resistance_type
protected int resistance_type
resistance_percentage
protected int resistance_percentage
propertyChangeListeners
protected Vector propertyChangeListeners
PHYSICAL
public static final int PHYSICAL
PSIONIC
public static final int PSIONIC
MAGIC
public static final int MAGIC
BLIND
public static final int BLIND
DISEASE
public static final int DISEASE
PARALYZE
public static final int PARALYZE
FIRE
public static final int FIRE
COLD
public static final int COLD
LIGHTNING
public static final int LIGHTNING
Resistance
protected Resistance()
- Constructor. Only called by factory methods.
createResistance
public static Resistance createResistance()
- Factory method. Create a new Resistance object.
init
protected void init()
- Initialization for factory method.
- Overrides:
- init in class Persistant
getResistanceType
public int getResistanceType()
- Gets resistance type.
setResistanceType
public void setResistanceType(int resistance_type)
- Sets resistance type.
getResistancePercentage
public int getResistancePercentage()
- Gets resistance percentage.
setResistancePercentage
public void setResistancePercentage(int perc)
- Gets resistance percentage.
createRows
protected void createRows()
- Create a database entry for this object.
- Overrides:
- createRows in class Persistant
Store
public void Store()
- Save the Resistance object.
loadResistance
public static Resistance loadResistance(int id)
- Load the resistance object.
load
protected void load()
- Load the resistance object. Internals.
- Overrides:
- load in class Persistant
unregister
public void unregister()
- Remove resistance from database.
- Overrides:
- unregister in class Persistant
addPropertyChangeListener
public void addPropertyChangeListener(PropertyChangeListener pl)
- Add a property change listener.
removePropertyChangeListener
public void removePropertyChangeListener(PropertyChangeListener pl)
- Remove a listener.
propChange
protected void propChange(String prop)
- Fire a property change event.
All Packages Class Hierarchy This Package Previous Next Index