Class SetDestinationMessage


  • public class SetDestinationMessage
    extends AttributeMessage
    The message sent when the client requests setting a unit destination.
    • Constructor Detail

      • SetDestinationMessage

        public SetDestinationMessage​(Unit unit,
                                     Location destination)
        Create a new SetDestinationMessage with the supplied unit and destination.
        Parameters:
        unit - The Unit whose destination is to be set
        destination - The destination to set (may be null)
      • SetDestinationMessage

        public SetDestinationMessage​(Game game,
                                     FreeColXMLReader xr)
                              throws javax.xml.stream.XMLStreamException
        Create a new SetDestinationMessage from a stream.
        Parameters:
        game - The Game this message belongs to (null here).
        xr - The FreeColXMLReader to read from.
        Throws:
        javax.xml.stream.XMLStreamException - if the stream is corrupt.