All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class sso.Attack

java.lang.Object
   |
   +----sso.Attack

public class Attack
extends Object

Variable Index

 o CRITICAL_HIT
 o DODGE_SKILL
 o FUMBLE
 o HIT
 o MISS
 o PARTIAL_RESIST
 o RESISTED

Constructor Index

 o Attack()

Method Index

 o attack()
 o checkResistance()
 o getAttacker()
 o getAttackerRoll()
 o getAttackTime()
 o getAttackType()
 o getDamageLocation()
 o getDamageRoll()
 o getDefender()
 o getDefenderRoll()
 o getPath(int, int, int, int)
Returns an array of the straight-line path (in tiles) between the given points.
 o getResult()
 o getWeapon()
 o setAttacker(PC)
 o setDefender(Attackable)
 o setWeapon(Weapon)
 o throwAttack()
Perform a thrown weapon attack.

Variables

 o MISS
 public static final int MISS
 o HIT
 public static final int HIT
 o RESISTED
 public static final int RESISTED
 o PARTIAL_RESIST
 public static final int PARTIAL_RESIST
 o CRITICAL_HIT
 public static final int CRITICAL_HIT
 o FUMBLE
 public static final int FUMBLE
 o DODGE_SKILL
 public static final String DODGE_SKILL

Constructors

 o Attack
 public Attack()

Methods

 o getAttacker
 public PC getAttacker()
 o setAttacker
 public void setAttacker(PC attacker)
 o getDefender
 public Attackable getDefender()
 o setDefender
 public void setDefender(Attackable defender)
 o getWeapon
 public Weapon getWeapon()
 o setWeapon
 public void setWeapon(Weapon weapon)
 o getResult
 public int getResult()
 o getAttackTime
 public long getAttackTime()
 o getAttackerRoll
 public int getAttackerRoll()
 o getDefenderRoll
 public int getDefenderRoll()
 o getDamageRoll
 public int getDamageRoll()
 o getDamageLocation
 public int getDamageLocation()
 o getAttackType
 public int getAttackType()
 o attack
 public void attack()
 o checkResistance
 public void checkResistance()
 o throwAttack
 public void throwAttack()
Perform a thrown weapon attack. TODO: finish this when tiles are done so I can calculate distances

 o getPath
 public static Point[] getPath(int xa,
                               int ya,
                               int xd,
                               int yd)
Returns an array of the straight-line path (in tiles) between the given points.


All Packages  Class Hierarchy  This Package  Previous  Next  Index