rl.leviathan.game
Class PointDefenceAttemptOrder

java.lang.Object
  extended by rl.leviathan.game.PointDefenceAttemptOrder
All Implemented Interfaces:
java.io.Serializable

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

See Also:
Serialized Form

Constructor Summary
PointDefenceAttemptOrder(int weaponIndex, java.lang.String weaponName, ShipSide firingArc, float percentageAllocation, Coordinate sourceCoordinate, Coordinate targetCoordinate)
          This constructor is used for ships declaring a firing attempt order
PointDefenceAttemptOrder(java.lang.String weaponName)
          This constructor is used for InfantrySquads
 
Method Summary
 ShipSide getFiringArc()
           
 float getPercentageAllocation()
           
 Coordinate getSourceCoordinate()
           
 Coordinate getTargetCoordinate()
           
 int getWeaponIndex()
           
 java.lang.String getWeaponName()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PointDefenceAttemptOrder

public PointDefenceAttemptOrder(int weaponIndex,
                                java.lang.String weaponName,
                                ShipSide firingArc,
                                float percentageAllocation,
                                Coordinate sourceCoordinate,
                                Coordinate targetCoordinate)
This constructor is used for ships declaring a firing attempt order

Parameters:
weaponIndex - the index of the equipment mount in the vehicle design
weaponName - the name of the weapon
firingArc - the firing arc of the weapon
targetSide - the side of the target that the attack is directed against
sourceCoordinate - the map coordinate that the attack originates from
targetCoordinate - the map coordinate that the attack is directed against

PointDefenceAttemptOrder

public PointDefenceAttemptOrder(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()

getFiringArc

public ShipSide getFiringArc()

getPercentageAllocation

public float getPercentageAllocation()

getSourceCoordinate

public Coordinate getSourceCoordinate()

getTargetCoordinate

public Coordinate getTargetCoordinate()