rl.leviathan.game
Class PointDefenceAttemptPacket

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

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

See Also:
Serialized Form

Constructor Summary
PointDefenceAttemptPacket(GameElementIdentifier source, GameElementIdentifier target, int turn)
           
PointDefenceAttemptPacket(GameElementIdentifier source, GameElementIdentifier target, int turn, ShipSide targetSide)
           
 
Method Summary
 void addOrder(PointDefenceAttemptOrder order)
           
 java.util.Vector<PointDefenceAttemptOrder> getOrders()
           
 GameElement getSource()
           
 GameElementIdentifier getSourceIdentifier()
           
 Location getSourceLocation()
           
 GameElement getTarget()
           
 GameElementIdentifier getTargetIdentifier()
           
 Location getTargetLocation()
           
 ShipSide getTargetSide()
          returns the side of the vehicle being targeted.
 int getTurn()
           
 void removeLastOrder()
           
 void setSource(GameElement element)
           
 void setSourceLocation(Location location)
           
 void setTarget(GameElement element)
           
 void setTargetLocation(Location location)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PointDefenceAttemptPacket

public PointDefenceAttemptPacket(GameElementIdentifier source,
                                 GameElementIdentifier target,
                                 int turn)

PointDefenceAttemptPacket

public PointDefenceAttemptPacket(GameElementIdentifier source,
                                 GameElementIdentifier target,
                                 int turn,
                                 ShipSide targetSide)
Method Detail

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

removeLastOrder

public void removeLastOrder()

getOrders

public java.util.Vector<PointDefenceAttemptOrder> getOrders()

getTargetSide

public ShipSide 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