Class MissionaryMessage


  • public class MissionaryMessage
    extends AttributeMessage
    The message sent when a missionary establishes/denounces a mission.
    • Constructor Detail

      • MissionaryMessage

        public MissionaryMessage​(Unit unit,
                                 Direction direction,
                                 boolean denounce)
        Create a new MissionaryMessage with the supplied name.
        Parameters:
        unit - The missionary Unit.
        direction - The Direction to the settlement.
        denounce - True if this is a denunciation.
      • MissionaryMessage

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

      • currentPlayerMessage

        public boolean currentPlayerMessage()
        Should this message only be sent to a server by the current player?
        Overrides:
        currentPlayerMessage in class TrivialMessage
        Returns:
        True if this is a current-player-only message.
      • 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.