rl.common.game.elements
Class PointDefence
java.lang.Object
rl.common.game.elements.Equipment
rl.common.game.elements.Weapon
rl.common.game.elements.PointDefence
- All Implemented Interfaces:
- java.io.Serializable
public class PointDefence
- extends Weapon
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
serialVersionUID
static final long serialVersionUID
- See Also:
- Constant Field Values
PointDefence
public PointDefence()
isOffensiveWeapon
public boolean isOffensiveWeapon()
- Specified by:
isOffensiveWeapon in class Weapon
isDirectFireWeapon
public boolean isDirectFireWeapon()
- Specified by:
isDirectFireWeapon in class Weapon
isIndirectFireWeapon
public boolean isIndirectFireWeapon()
- Specified by:
isIndirectFireWeapon in class Weapon
isArtilleryWeapon
public boolean isArtilleryWeapon()
- Specified by:
isArtilleryWeapon in class Weapon
usesAmmunitionTypes
public boolean usesAmmunitionTypes()
- Specified by:
usesAmmunitionTypes in class Weapon
getAmmunitionTypeNames
public java.util.Vector<java.lang.String> getAmmunitionTypeNames()
- Specified by:
getAmmunitionTypeNames in class Weapon
usesAmmunition
public boolean usesAmmunition()
- Specified by:
usesAmmunition in class Weapon
getAmmunitionCapacity
public int getAmmunitionCapacity()
- Specified by:
getAmmunitionCapacity in class Weapon
getWeaponType
public Weapon.WeaponType getWeaponType()
- Specified by:
getWeaponType in class Weapon
getDamageTemplate
public WeaponDamageTemplate getDamageTemplate()
- Specified by:
getDamageTemplate in class Weapon
setValue
public void setValue(org.jdom.Element val)
throws java.lang.IllegalArgumentException
- Overrides:
setValue in class Weapon
- Throws:
java.lang.IllegalArgumentException
getMaxShots
public int getMaxShots()
getShotChance
public int getShotChance(int numShots)