wyvern.kernel.combat
Class AttackType

java.lang.Object
  extended bywyvern.kernel.combat.AttackType

public final class AttackType
extends java.lang.Object

Represents the possible kinds of attacks.

Version:
1.0, Aug 21, 2003
Author:
Steve Yegge

Field Summary
static int BASE_ACCURACY
           
static java.lang.String HURLED_SKILL
           
static AttackType HURLED_WEAPON
          Attacker is throwing a spear, dart, or other weapon intended to be thrown.
static java.lang.String MELEE_SKILL
           
static AttackType MELEE_WEAPON
          Attacking is hitting someone with a wielded weapon that was intended to be wielded as a weapon.
static java.lang.String NO_COMBAT_SKILL
           
static java.lang.String RANGE_SKILL
           
static AttackType RANGE_WEAPON
          Attacker is firing a range weapon, and the damage is being done by a missile.
static AttackType THROW_NON_HURLED
          Attacker is throwing something lame, like a chair or a sword.
static int THROW_NON_HURLED_ACCURACY
           
static AttackType UNARMED_COMBAT
          Attacker is hitting, kicking, biting, or otherwise attacking someone with their body.
static java.lang.String UNARMED_SKILL
           
static AttackType WIELD_NON_MELEE
          Attacker is wielding something lame, like a chair or a bow, and attacking with it.
static int WIELD_NON_MELEE_ACCURACY
           
 
Constructor Summary
AttackType(java.lang.String name, int accuracy)
          Constructs a new AttackType
 
Method Summary
 int getAccuracy()
          Returns the base accuracy for this attack type.
 java.lang.String toString()
          Returns debugging representation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

BASE_ACCURACY

public static final int BASE_ACCURACY
See Also:
Constant Field Values

WIELD_NON_MELEE_ACCURACY

public static final int WIELD_NON_MELEE_ACCURACY
See Also:
Constant Field Values

THROW_NON_HURLED_ACCURACY

public static final int THROW_NON_HURLED_ACCURACY
See Also:
Constant Field Values

UNARMED_SKILL

public static final java.lang.String UNARMED_SKILL
See Also:
Constant Field Values

RANGE_SKILL

public static final java.lang.String RANGE_SKILL
See Also:
Constant Field Values

HURLED_SKILL

public static final java.lang.String HURLED_SKILL
See Also:
Constant Field Values

MELEE_SKILL

public static final java.lang.String MELEE_SKILL
See Also:
Constant Field Values

NO_COMBAT_SKILL

public static final java.lang.String NO_COMBAT_SKILL

UNARMED_COMBAT

public static final AttackType UNARMED_COMBAT
Attacker is hitting, kicking, biting, or otherwise attacking someone with their body. Uses sk-unarmed.


RANGE_WEAPON

public static final AttackType RANGE_WEAPON
Attacker is firing a range weapon, and the damage is being done by a missile. Uses sk-range.


MELEE_WEAPON

public static final AttackType MELEE_WEAPON
Attacking is hitting someone with a wielded weapon that was intended to be wielded as a weapon. Uses sk-melee or an appropriate weapon skill.


HURLED_WEAPON

public static final AttackType HURLED_WEAPON
Attacker is throwing a spear, dart, or other weapon intended to be thrown. Uses sk-hurled.


WIELD_NON_MELEE

public static final AttackType WIELD_NON_MELEE
Attacker is wielding something lame, like a chair or a bow, and attacking with it. No weapon skills are used.


THROW_NON_HURLED

public static final AttackType THROW_NON_HURLED
Attacker is throwing something lame, like a chair or a sword. No weapon skills are used.

Constructor Detail

AttackType

public AttackType(java.lang.String name,
                  int accuracy)
Constructs a new AttackType

Method Detail

getAccuracy

public int getAccuracy()
Returns the base accuracy for this attack type.


toString

public java.lang.String toString()
Returns debugging representation.