All Packages Class Hierarchy This Package Previous Next Index
Class sso.Attack
java.lang.Object
|
+----sso.Attack
- public class Attack
- extends Object
-
CRITICAL_HIT
-
-
DODGE_SKILL
-
-
FUMBLE
-
-
HIT
-
-
MISS
-
-
PARTIAL_RESIST
-
-
RESISTED
-
-
Attack()
-
-
attack()
-
-
checkResistance()
-
-
getAttacker()
-
-
getAttackerRoll()
-
-
getAttackTime()
-
-
getAttackType()
-
-
getDamageLocation()
-
-
getDamageRoll()
-
-
getDefender()
-
-
getDefenderRoll()
-
-
getPath(int, int, int, int)
- Returns an array of the straight-line path (in tiles) between the given
points.
-
getResult()
-
-
getWeapon()
-
-
setAttacker(PC)
-
-
setDefender(Attackable)
-
-
setWeapon(Weapon)
-
-
throwAttack()
- Perform a thrown weapon attack.
MISS
public static final int MISS
HIT
public static final int HIT
RESISTED
public static final int RESISTED
PARTIAL_RESIST
public static final int PARTIAL_RESIST
CRITICAL_HIT
public static final int CRITICAL_HIT
FUMBLE
public static final int FUMBLE
DODGE_SKILL
public static final String DODGE_SKILL
Attack
public Attack()
getAttacker
public PC getAttacker()
setAttacker
public void setAttacker(PC attacker)
getDefender
public Attackable getDefender()
setDefender
public void setDefender(Attackable defender)
getWeapon
public Weapon getWeapon()
setWeapon
public void setWeapon(Weapon weapon)
getResult
public int getResult()
getAttackTime
public long getAttackTime()
getAttackerRoll
public int getAttackerRoll()
getDefenderRoll
public int getDefenderRoll()
getDamageRoll
public int getDamageRoll()
getDamageLocation
public int getDamageLocation()
getAttackType
public int getAttackType()
attack
public void attack()
checkResistance
public void checkResistance()
throwAttack
public void throwAttack()
- Perform a thrown weapon attack.
TODO: finish this when tiles are done so I can calculate distances
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