rl.leviathan.game
Class FiringAttemptOrder
java.lang.Object
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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 designweaponName - the name of the weaponfiringArc - the firing arc of the weapontargetSide - the side of the target that the attack is directed atsourceCoordinate - the map coordinate that the attack is orginating fromtargetCoordinate - 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.
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()