Class EnterRevengeModeMessage


  • public class EnterRevengeModeMessage
    extends TrivialMessage
    A trivial message sent to the server when then client requests entry to revenge mode.
    • Constructor Detail

      • EnterRevengeModeMessage

        public EnterRevengeModeMessage()
        Create a new EnterRevengeModeMessage.
      • EnterRevengeModeMessage

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

      • serverHandler

        public ChangeSet serverHandler​(FreeColServer freeColServer,
                                       ServerPlayer serverPlayer)
        Server-side handler for this message.
        Overrides:
        serverHandler in class TrivialMessage
        Parameters:
        freeColServer - The FreeColServer handling the request.
        serverPlayer - The ServerPlayer that sent the request.
        Returns:
        A ChangeSet defining the response.