rl.leviathan.game
Class FiringAttemptOrder

java.lang.Object
  extended by rl.leviathan.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, ShipSide firingArc, ShipSide targetSide, Coordinate sourceCoordinate, Coordinate targetCoordinate)
          This constructor is used for ships declaring a firing attempt order
FiringAttemptOrder(java.lang.String weaponName)
          This constructor is used for InfantrySquads
 
Method Summary
 ShipSide getFiringArc()
           
 Coordinate getSourceCoordinate()
           
 Coordinate getTargetCoordinate()
           
 ShipSide getTargetSide()
           
 GameElementIdentifier getTransientElementIdentifier()
           
 int getWeaponIndex()
           
 java.lang.String getWeaponName()
           
 void setTransientElementIdentifier(GameElementIdentifier id)
           
 
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,
                          ShipSide firingArc,
                          ShipSide targetSide,
                          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 at
sourceCoordinate - the map coordinate that the attack is orginating from
targetCoordinate - the map coordinate that the attack is directed at

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

getFiringArc

public ShipSide getFiringArc()

getTargetSide

public ShipSide getTargetSide()

getSourceCoordinate

public Coordinate getSourceCoordinate()

getTargetCoordinate

public Coordinate getTargetCoordinate()

setTransientElementIdentifier

public void setTransientElementIdentifier(GameElementIdentifier id)

getTransientElementIdentifier

public GameElementIdentifier getTransientElementIdentifier()