rl.centurion.game
Class FiringAttemptPacket
java.lang.Object
rl.centurion.game.FiringAttemptPacket
- All Implemented Interfaces:
- java.io.Serializable
public class FiringAttemptPacket
- 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 |
FiringAttemptPacket
public FiringAttemptPacket(GameElementIdentifier source,
GameElementIdentifier target,
int turn)
FiringAttemptPacket
public FiringAttemptPacket(GameElementIdentifier source,
GameElementIdentifier target,
int turn,
Vehicle.Side targetSide)
getSourceIdentifier
public GameElementIdentifier getSourceIdentifier()
getTargetIdentifier
public GameElementIdentifier getTargetIdentifier()
getSource
public GameElement getSource()
setSource
public void setSource(GameElement element)
getTarget
public GameElement getTarget()
setTarget
public void setTarget(GameElement element)
getSourceLocation
public Location getSourceLocation()
setSourceLocation
public void setSourceLocation(Location location)
getTargetLocation
public Location getTargetLocation()
setTargetLocation
public void setTargetLocation(Location location)
getTurn
public int getTurn()
addOrder
public void addOrder(FiringAttemptOrder order)
removeLastOrder
public void removeLastOrder()
getOrders
public java.util.Vector<FiringAttemptOrder> getOrders()
getTargetSide
public Vehicle.Side getTargetSide()
- returns the side of the vehicle being targeted.
This is only filled in if the Firing Attempt Packet is created for an infantry squad
that is located in the same hex as the vehicle is is targetting
- Returns:
- the side of the vehicle chosen to attack