All Packages Class Hierarchy This Package Previous Next Index
Class sso.Arms
java.lang.Object
|
+----sso.Persistant
|
+----sso.GameObject
|
+----sso.Thing
|
+----sso.Equipment
|
+----sso.Arms
- public class Arms
- extends Equipment
- implements Weapon, Throwable
-
attackType
-
-
criticalHit
-
-
dmgBonus
-
-
dmgDice
-
-
dmgFaces
-
-
extremeRange
-
-
extremeRangePenalty
-
-
fumbleListeners
-
-
fumbleRoll
-
-
longRange
-
-
longRangePenalty
-
-
medRange
-
-
medRangePenalty
-
-
minRange
-
-
oppSkill
-
-
shortRange
-
-
shortRangePenalty
-
-
throwSkill
-
-
weaponSkill
-
-
Arms()
- Constructor.
-
addFumbleListener(FumbleListener)
- Add a fumble event listener.
-
createArms()
- Factory method.
-
createRows()
- Create the rows needed to store this Arms object.
-
doFumble()
- Do a fumble on this.getLocation() if location is a PC
-
doThrow(Attackable)
- Do a throw type attack.
-
fumbleEvent()
- Raise a fumble event.
-
getAttackType()
- Get the attack type of this weapon.
-
getCriticalHit()
- Return the critical hit threshold.
-
getDamage()
- Make a damage roll.
-
getDamageBonus()
- Get the damage bonus for successful attacks.
-
getExtremeRange()
- Get the band (long..extreme) for this weapon.
-
getExtremeRangePenalty()
- Get the extreme range penalty
-
getFumble()
- Return the fumble threshold.
-
getLongRange()
- Get the band (med..long) for this weapon.
-
getLongRangePenalty()
- Get the long range penalty
-
getMedRange()
- Get the band (short..med) for this weapon.
-
getMedRangePenalty()
- Get the medium range penalty
-
getMinRange()
- Get the minimum range that this weapon can be thrown in.
-
getOpposingSkill()
- Get the opposing skill that is required to block attacks
-
getShortRange()
- Get the band (min..short) for this weapon.
-
getShortRangePenalty()
- Get the short range penalty
-
getSkill()
- Get the skill required to attack with this weapon
-
getThrowSkill()
- Get the throw skill for this weapon
-
init()
- Protected initializer.
-
load()
- Load the Arms object from the db.
-
loadArms(int)
- Load the Arms object.
-
main(String[])
- Tester
-
removeFumbleListener(FumbleListener)
- Remove a fumble event listener.
-
setAttackType(int)
- Set the attack type
-
setCriticalHit(int)
- Set the critical hit threshold
-
setDamageBonus(int)
- Set the damage bonus for successful attacks.
-
setDamageDice(int)
- Set the damage dice (number to roll when computing damage).
-
setDamageFaces(int)
- Set the damage die faces (number of faces on each damage die).
-
setExtremeRange(int)
- Set extreme range for throwing this weapon.
-
setExtremeRangePenalty(int)
- Set the extreme range penalty.
-
setFumbleRoll(int)
- Set the fumble roll threshold.
-
setLongRange(int)
- Set long range for throwing this weapon.
-
setLongRangePenalty(int)
- Set the long range penalty.
-
setMediumRange(int)
- Set medium range for throwing this weapon.
-
setMedRangePenalty(int)
- Set the medium range penalty.
-
setMinRange(int)
- Set the minimum throw range for this weapon.
-
setOpposingSkill(String)
- Set the opposing skill to avoid attacks.
-
setShortRange(int)
- Set short range for throwing this object.
-
setShortRangePenalty(int)
- Set the short range penalty.
-
setSkill(String)
- Set the skill needed to attack with this weapon.
-
setThrowSkill(String)
- Set the skill needed to throw this object.
-
store()
- Store the Arms object.
-
unregister()
- Remove the Arms object from the database
criticalHit
protected int criticalHit
fumbleRoll
protected int fumbleRoll
attackType
protected int attackType
dmgDice
protected int dmgDice
dmgFaces
protected int dmgFaces
minRange
protected int minRange
shortRange
protected int shortRange
medRange
protected int medRange
longRange
protected int longRange
extremeRange
protected int extremeRange
shortRangePenalty
protected int shortRangePenalty
medRangePenalty
protected int medRangePenalty
longRangePenalty
protected int longRangePenalty
extremeRangePenalty
protected int extremeRangePenalty
throwSkill
protected String throwSkill
weaponSkill
protected String weaponSkill
oppSkill
protected String oppSkill
dmgBonus
protected int dmgBonus
fumbleListeners
protected Vector fumbleListeners
Arms
protected Arms()
- Constructor. Not intended to be called publicly.
createArms
public static Arms createArms()
- Factory method. Used to create a new instance of Arms.
init
protected void init()
- Protected initializer. Used for creating news instances of Arms.
- Overrides:
- init in class Equipment
setCriticalHit
public void setCriticalHit(int threshold)
- Set the critical hit threshold
setFumbleRoll
public void setFumbleRoll(int threshold)
- Set the fumble roll threshold.
setAttackType
public void setAttackType(int type)
- Set the attack type
setDamageDice
public void setDamageDice(int dice)
- Set the damage dice (number to roll when computing damage).
setDamageFaces
public void setDamageFaces(int faces)
- Set the damage die faces (number of faces on each damage die).
setMinRange
public void setMinRange(int min)
- Set the minimum throw range for this weapon.
setShortRange
public void setShortRange(int shortR)
- Set short range for throwing this object.
setMediumRange
public void setMediumRange(int med)
- Set medium range for throwing this weapon.
setLongRange
public void setLongRange(int longR)
- Set long range for throwing this weapon.
setExtremeRange
public void setExtremeRange(int extreme)
- Set extreme range for throwing this weapon.
setShortRangePenalty
public void setShortRangePenalty(int pen)
- Set the short range penalty.
setMedRangePenalty
public void setMedRangePenalty(int pen)
- Set the medium range penalty.
setLongRangePenalty
public void setLongRangePenalty(int pen)
- Set the long range penalty.
setExtremeRangePenalty
public void setExtremeRangePenalty(int pen)
- Set the extreme range penalty.
setThrowSkill
public void setThrowSkill(String skill)
- Set the skill needed to throw this object.
setSkill
public void setSkill(String skill)
- Set the skill needed to attack with this weapon.
setOpposingSkill
public void setOpposingSkill(String skill)
- Set the opposing skill to avoid attacks.
getDamageBonus
public int getDamageBonus()
- Get the damage bonus for successful attacks.
setDamageBonus
public void setDamageBonus(int bonus)
- Set the damage bonus for successful attacks.
getSkill
public Skill getSkill()
- Get the skill required to attack with this weapon
getOpposingSkill
public Skill getOpposingSkill()
- Get the opposing skill that is required to block attacks
getDamage
public int getDamage()
- Make a damage roll.
getCriticalHit
public int getCriticalHit()
- Return the critical hit threshold.
getFumble
public int getFumble()
- Return the fumble threshold.
doFumble
public void doFumble()
- Do a fumble on this.getLocation() if location is a PC
getAttackType
public int getAttackType()
- Get the attack type of this weapon.
getMinRange
public int getMinRange()
- Get the minimum range that this weapon can be thrown in.
And closer and it can't be thrown.
getShortRange
public int getShortRange()
- Get the band (min..short) for this weapon.
getMedRange
public int getMedRange()
- Get the band (short..med) for this weapon.
getLongRange
public int getLongRange()
- Get the band (med..long) for this weapon.
getExtremeRange
public int getExtremeRange()
- Get the band (long..extreme) for this weapon.
getShortRangePenalty
public int getShortRangePenalty()
- Get the short range penalty
getMedRangePenalty
public int getMedRangePenalty()
- Get the medium range penalty
getLongRangePenalty
public int getLongRangePenalty()
- Get the long range penalty
getExtremeRangePenalty
public int getExtremeRangePenalty()
- Get the extreme range penalty
getThrowSkill
public Skill getThrowSkill()
- Get the throw skill for this weapon
doThrow
public Attack doThrow(Attackable target)
- Do a throw type attack. Different from a normal attack which uses the
normal attack mode of an object (defined as PC.doAttack(target). This
one uses the Attack.throwAttack method.
addFumbleListener
public void addFumbleListener(FumbleListener fl)
- Add a fumble event listener.
removeFumbleListener
public void removeFumbleListener(FumbleListener fl)
- Remove a fumble event listener.
fumbleEvent
protected void fumbleEvent()
- Raise a fumble event.
createRows
protected void createRows()
- Create the rows needed to store this Arms object.
- Overrides:
- createRows in class Equipment
store
public void store()
- Store the Arms object.
- Overrides:
- store in class Equipment
loadArms
public static Arms loadArms(int id)
- Load the Arms object.
load
protected void load()
- Load the Arms object from the db.
- Overrides:
- load in class Equipment
unregister
public void unregister()
- Remove the Arms object from the database
- Overrides:
- unregister in class Equipment
main
public static void main(String args[])
- Tester
All Packages Class Hierarchy This Package Previous Next Index