Class SetCurrentStopMessage


  • public class SetCurrentStopMessage
    extends AttributeMessage
    The message sent updating a unit's current stop.
    • Constructor Detail

      • SetCurrentStopMessage

        public SetCurrentStopMessage​(Unit unit,
                                     int index)
        Create a new SetCurrentStopMessage for the supplied unit.
        Parameters:
        unit - A Unit whose stop is to be setd.
        index - The stop index.
      • SetCurrentStopMessage

        public SetCurrentStopMessage​(Game game,
                                     FreeColXMLReader xr)
                              throws javax.xml.stream.XMLStreamException
        Create a new SetCurrentStopMessage 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.