rl.common.game.elements
Class PointDefence

java.lang.Object
  extended by rl.common.game.elements.Equipment
      extended by rl.common.game.elements.Weapon
          extended by rl.common.game.elements.PointDefence
All Implemented Interfaces:
java.io.Serializable

public class PointDefence
extends Weapon

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class rl.common.game.elements.Weapon
Weapon.WeaponType
 
Nested classes/interfaces inherited from class rl.common.game.elements.Equipment
Equipment.LocationRestriction, Equipment.Type, Equipment.Use
 
Field Summary
(package private) static long serialVersionUID
           
 
Fields inherited from class rl.common.game.elements.Weapon
WeaponTypeName
 
Constructor Summary
PointDefence()
           
 
Method Summary
 int getAmmunitionCapacity()
           
 java.util.Vector<java.lang.String> getAmmunitionTypeNames()
           
 WeaponDamageTemplate getDamageTemplate()
           
 int getMaxShots()
           
 int getShotChance(int numShots)
           
 Weapon.WeaponType getWeaponType()
           
 boolean isArtilleryWeapon()
           
 boolean isDirectFireWeapon()
           
 boolean isIndirectFireWeapon()
           
 boolean isOffensiveWeapon()
           
 void setValue(org.jdom.Element val)
           
 boolean usesAmmunition()
           
 boolean usesAmmunitionTypes()
           
 
Methods inherited from class rl.common.game.elements.Weapon
getInfantryDamage, getRange, getType, isBallistic
 
Methods inherited from class rl.common.game.elements.Equipment
getCost, getEquipmentUse, getMass, getName, getPower, getRestriction, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

serialVersionUID

static final long serialVersionUID
See Also:
Constant Field Values
Constructor Detail

PointDefence

public PointDefence()
Method Detail

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)