All Packages Class Hierarchy This Package Previous Next Index
Class sso.Skill
java.lang.Object
|
+----sso.Persistant
|
+----sso.Skill
- public class Skill
- extends Persistant
Represents an instance of a skill on a PC.
-
base_rating
-
-
cur_rating
-
-
DEFAULT_RATING
-
-
defaultPenalty
-
-
improveThreshold
-
-
learnChance
-
-
parentSkill
-
-
parentSkillName
-
-
pips
-
-
SKILL
-
-
skillChangeListeners
-
-
Skill()
- Constructor.
-
addSkillChangeListener(SkillChangeListener)
-
-
createRows()
- Create the rows needed to store this object in the database.
-
createSkill()
- Create a new skill object.
-
getBaseRating()
- Get the base rating.
-
getDefaultPenalty()
- Get the default penalty.
-
getImproveThreshold()
- Get the improvement threshold.
-
getLearnChance()
- Get the learning chance.
-
getParentSkill()
- Get the parent skill.
-
getParentSkillName()
- Get parent skill name.
-
getPips()
- Get the pips.
-
getRating()
- Get the current rating.
-
improve(int)
- Improve the skill.
-
init()
- Initialize the new skill object.
-
load()
- Load a Skill object from the database.
-
loadSkill(int)
- Load a Skill object.
-
main(String[])
- Tester.
-
removeSkillChangeListener(SkillChangeListener)
-
-
roll()
- Perform a skill roll.
-
setBaseRating(int)
- Set the base rating.
-
setDefaultPenalty(int)
- Set the default penalty.
-
setImproveThreshold(int)
- Set the improvement threshold.
-
setLearnChance(int)
- Set the learning chance.
-
setRating(int)
- Set the current rating.
-
skillChange()
-
-
store()
- Store the state of the skill object.
-
unregister()
- Remove the object from the registry and database.
cur_rating
protected int cur_rating
base_rating
protected int base_rating
pips
protected int pips
improveThreshold
protected int improveThreshold
learnChance
protected int learnChance
parentSkill
protected Skill parentSkill
defaultPenalty
protected int defaultPenalty
skillChangeListeners
protected Vector skillChangeListeners
parentSkillName
protected String parentSkillName
DEFAULT_RATING
public static final int DEFAULT_RATING
SKILL
public static String SKILL
Skill
protected Skill()
- Constructor. Don't call directly.
createSkill
public static Skill createSkill()
- Create a new skill object.
init
protected void init()
- Initialize the new skill object.
- Overrides:
- init in class Persistant
getRating
public int getRating()
- Get the current rating.
setRating
public void setRating(int rating)
- Set the current rating.
getBaseRating
public int getBaseRating()
- Get the base rating.
setBaseRating
public void setBaseRating(int rating)
- Set the base rating.
improve
public void improve(int points)
- Improve the skill.
getPips
public int getPips()
- Get the pips.
getImproveThreshold
public int getImproveThreshold()
- Get the improvement threshold.
setImproveThreshold
public void setImproveThreshold(int thresh)
- Set the improvement threshold.
getLearnChance
public int getLearnChance()
- Get the learning chance.
setLearnChance
public void setLearnChance(int chance)
- Set the learning chance.
getParentSkill
public Skill getParentSkill()
- Get the parent skill.
getDefaultPenalty
public int getDefaultPenalty()
- Get the default penalty. This is the roll penalty modifier when the
skill roll needs to default to the parent skill.
setDefaultPenalty
public void setDefaultPenalty(int penalty)
- Set the default penalty.
roll
public int roll()
- Perform a skill roll.
getParentSkillName
public String getParentSkillName()
- Get parent skill name.
createRows
protected void createRows()
- Create the rows needed to store this object in the database.
- Overrides:
- createRows in class Persistant
store
public void store()
- Store the state of the skill object.
- Overrides:
- store in class Persistant
loadSkill
public static Skill loadSkill(int id)
- Load a Skill object.
load
protected void load()
- Load a Skill object from the database.
- Overrides:
- load in class Persistant
unregister
public void unregister()
- Remove the object from the registry and database.
- Overrides:
- unregister in class Persistant
addSkillChangeListener
public void addSkillChangeListener(SkillChangeListener sl)
removeSkillChangeListener
public void removeSkillChangeListener(SkillChangeListener sl)
skillChange
protected void skillChange()
main
public static void main(String args[])
- Tester.
All Packages Class Hierarchy This Package Previous Next Index