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

Variable Index

 o attackType
 o criticalHit
 o dmgBonus
 o dmgDice
 o dmgFaces
 o extremeRange
 o extremeRangePenalty
 o fumbleListeners
 o fumbleRoll
 o longRange
 o longRangePenalty
 o medRange
 o medRangePenalty
 o minRange
 o oppSkill
 o shortRange
 o shortRangePenalty
 o throwSkill
 o weaponSkill

Constructor Index

 o Arms()
Constructor.

Method Index

 o addFumbleListener(FumbleListener)
Add a fumble event listener.
 o createArms()
Factory method.
 o createRows()
Create the rows needed to store this Arms object.
 o doFumble()
Do a fumble on this.getLocation() if location is a PC
 o doThrow(Attackable)
Do a throw type attack.
 o fumbleEvent()
Raise a fumble event.
 o getAttackType()
Get the attack type of this weapon.
 o getCriticalHit()
Return the critical hit threshold.
 o getDamage()
Make a damage roll.
 o getDamageBonus()
Get the damage bonus for successful attacks.
 o getExtremeRange()
Get the band (long..extreme) for this weapon.
 o getExtremeRangePenalty()
Get the extreme range penalty
 o getFumble()
Return the fumble threshold.
 o getLongRange()
Get the band (med..long) for this weapon.
 o getLongRangePenalty()
Get the long range penalty
 o getMedRange()
Get the band (short..med) for this weapon.
 o getMedRangePenalty()
Get the medium range penalty
 o getMinRange()
Get the minimum range that this weapon can be thrown in.
 o getOpposingSkill()
Get the opposing skill that is required to block attacks
 o getShortRange()
Get the band (min..short) for this weapon.
 o getShortRangePenalty()
Get the short range penalty
 o getSkill()
Get the skill required to attack with this weapon
 o getThrowSkill()
Get the throw skill for this weapon
 o init()
Protected initializer.
 o load()
Load the Arms object from the db.
 o loadArms(int)
Load the Arms object.
 o main(String[])
Tester
 o removeFumbleListener(FumbleListener)
Remove a fumble event listener.
 o setAttackType(int)
Set the attack type
 o setCriticalHit(int)
Set the critical hit threshold
 o setDamageBonus(int)
Set the damage bonus for successful attacks.
 o setDamageDice(int)
Set the damage dice (number to roll when computing damage).
 o setDamageFaces(int)
Set the damage die faces (number of faces on each damage die).
 o setExtremeRange(int)
Set extreme range for throwing this weapon.
 o setExtremeRangePenalty(int)
Set the extreme range penalty.
 o setFumbleRoll(int)
Set the fumble roll threshold.
 o setLongRange(int)
Set long range for throwing this weapon.
 o setLongRangePenalty(int)
Set the long range penalty.
 o setMediumRange(int)
Set medium range for throwing this weapon.
 o setMedRangePenalty(int)
Set the medium range penalty.
 o setMinRange(int)
Set the minimum throw range for this weapon.
 o setOpposingSkill(String)
Set the opposing skill to avoid attacks.
 o setShortRange(int)
Set short range for throwing this object.
 o setShortRangePenalty(int)
Set the short range penalty.
 o setSkill(String)
Set the skill needed to attack with this weapon.
 o setThrowSkill(String)
Set the skill needed to throw this object.
 o store()
Store the Arms object.
 o unregister()
Remove the Arms object from the database

Variables

 o criticalHit
 protected int criticalHit
 o fumbleRoll
 protected int fumbleRoll
 o attackType
 protected int attackType
 o dmgDice
 protected int dmgDice
 o dmgFaces
 protected int dmgFaces
 o minRange
 protected int minRange
 o shortRange
 protected int shortRange
 o medRange
 protected int medRange
 o longRange
 protected int longRange
 o extremeRange
 protected int extremeRange
 o shortRangePenalty
 protected int shortRangePenalty
 o medRangePenalty
 protected int medRangePenalty
 o longRangePenalty
 protected int longRangePenalty
 o extremeRangePenalty
 protected int extremeRangePenalty
 o throwSkill
 protected String throwSkill
 o weaponSkill
 protected String weaponSkill
 o oppSkill
 protected String oppSkill
 o dmgBonus
 protected int dmgBonus
 o fumbleListeners
 protected Vector fumbleListeners

Constructors

 o Arms
 protected Arms()
Constructor. Not intended to be called publicly.

Methods

 o createArms
 public static Arms createArms()
Factory method. Used to create a new instance of Arms.

 o init
 protected void init()
Protected initializer. Used for creating news instances of Arms.

Overrides:
init in class Equipment
 o setCriticalHit
 public void setCriticalHit(int threshold)
Set the critical hit threshold

 o setFumbleRoll
 public void setFumbleRoll(int threshold)
Set the fumble roll threshold.

 o setAttackType
 public void setAttackType(int type)
Set the attack type

 o setDamageDice
 public void setDamageDice(int dice)
Set the damage dice (number to roll when computing damage).

 o setDamageFaces
 public void setDamageFaces(int faces)
Set the damage die faces (number of faces on each damage die).

 o setMinRange
 public void setMinRange(int min)
Set the minimum throw range for this weapon.

 o setShortRange
 public void setShortRange(int shortR)
Set short range for throwing this object.

 o setMediumRange
 public void setMediumRange(int med)
Set medium range for throwing this weapon.

 o setLongRange
 public void setLongRange(int longR)
Set long range for throwing this weapon.

 o setExtremeRange
 public void setExtremeRange(int extreme)
Set extreme range for throwing this weapon.

 o setShortRangePenalty
 public void setShortRangePenalty(int pen)
Set the short range penalty.

 o setMedRangePenalty
 public void setMedRangePenalty(int pen)
Set the medium range penalty.

 o setLongRangePenalty
 public void setLongRangePenalty(int pen)
Set the long range penalty.

 o setExtremeRangePenalty
 public void setExtremeRangePenalty(int pen)
Set the extreme range penalty.

 o setThrowSkill
 public void setThrowSkill(String skill)
Set the skill needed to throw this object.

 o setSkill
 public void setSkill(String skill)
Set the skill needed to attack with this weapon.

 o setOpposingSkill
 public void setOpposingSkill(String skill)
Set the opposing skill to avoid attacks.

 o getDamageBonus
 public int getDamageBonus()
Get the damage bonus for successful attacks.

 o setDamageBonus
 public void setDamageBonus(int bonus)
Set the damage bonus for successful attacks.

 o getSkill
 public Skill getSkill()
Get the skill required to attack with this weapon

 o getOpposingSkill
 public Skill getOpposingSkill()
Get the opposing skill that is required to block attacks

 o getDamage
 public int getDamage()
Make a damage roll.

 o getCriticalHit
 public int getCriticalHit()
Return the critical hit threshold.

 o getFumble
 public int getFumble()
Return the fumble threshold.

 o doFumble
 public void doFumble()
Do a fumble on this.getLocation() if location is a PC

 o getAttackType
 public int getAttackType()
Get the attack type of this weapon.

 o getMinRange
 public int getMinRange()
Get the minimum range that this weapon can be thrown in. And closer and it can't be thrown.

 o getShortRange
 public int getShortRange()
Get the band (min..short) for this weapon.

 o getMedRange
 public int getMedRange()
Get the band (short..med) for this weapon.

 o getLongRange
 public int getLongRange()
Get the band (med..long) for this weapon.

 o getExtremeRange
 public int getExtremeRange()
Get the band (long..extreme) for this weapon.

 o getShortRangePenalty
 public int getShortRangePenalty()
Get the short range penalty

 o getMedRangePenalty
 public int getMedRangePenalty()
Get the medium range penalty

 o getLongRangePenalty
 public int getLongRangePenalty()
Get the long range penalty

 o getExtremeRangePenalty
 public int getExtremeRangePenalty()
Get the extreme range penalty

 o getThrowSkill
 public Skill getThrowSkill()
Get the throw skill for this weapon

 o 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.

 o addFumbleListener
 public void addFumbleListener(FumbleListener fl)
Add a fumble event listener.

 o removeFumbleListener
 public void removeFumbleListener(FumbleListener fl)
Remove a fumble event listener.

 o fumbleEvent
 protected void fumbleEvent()
Raise a fumble event.

 o createRows
 protected void createRows()
Create the rows needed to store this Arms object.

Overrides:
createRows in class Equipment
 o store
 public void store()
Store the Arms object.

Overrides:
store in class Equipment
 o loadArms
 public static Arms loadArms(int id)
Load the Arms object.

 o load
 protected void load()
Load the Arms object from the db.

Overrides:
load in class Equipment
 o unregister
 public void unregister()
Remove the Arms object from the database

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


All Packages  Class Hierarchy  This Package  Previous  Next  Index