rl.centurion.game
Class FiringAttemptOrder

java.lang.Object
  extended by rl.centurion.game.FiringAttemptOrder
All Implemented Interfaces:
java.io.Serializable

public class FiringAttemptOrder
extends java.lang.Object
implements java.io.Serializable

See Also:
Serialized Form

Constructor Summary
FiringAttemptOrder(int weaponIndex, java.lang.String weaponName, java.lang.String ammoType, boolean turretWeapon, int firingArc, boolean frontArc)
          This constructor is used for vehicles declaring a fairing attempt order
FiringAttemptOrder(java.lang.String weaponName)
          This constructor is used for InfantrySquads
 
Method Summary
 java.lang.String getAmmoType()
           
 int getFiringArc()
           
 int getWeaponIndex()
           
 java.lang.String getWeaponName()
           
 boolean isFrontArc()
           
 boolean isTurretWeapon()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FiringAttemptOrder

public FiringAttemptOrder(int weaponIndex,
                          java.lang.String weaponName,
                          java.lang.String ammoType,
                          boolean turretWeapon,
                          int firingArc,
                          boolean frontArc)
This constructor is used for vehicles declaring a fairing attempt order

Parameters:
weaponIndex - the index of the equipment mount in the vehicle design
weaponName - the name of the weapon
ammoType - the type of ammunition to be used (only affects weapons that have ammo type choice)
turretWeapon - set if this weapon is mounted in a turret
firingArc - the firing arc of the weapon
frontArc - whether the weapon is firing through the front arc.

FiringAttemptOrder

public FiringAttemptOrder(java.lang.String weaponName)
This constructor is used for InfantrySquads

Parameters:
weaponName - the name of the weapon being fired.
Method Detail

getWeaponName

public java.lang.String getWeaponName()

getWeaponIndex

public int getWeaponIndex()

getAmmoType

public java.lang.String getAmmoType()

isTurretWeapon

public boolean isTurretWeapon()

isFrontArc

public boolean isFrontArc()

getFiringArc

public int getFiringArc()