Class AIInGameInputHandler

    • Field Detail

      • logger

        private static final java.util.logging.Logger logger
      • player

        private final Player player
        The player for whom I work.
      • aiMain

        private final AIMain aiMain
        The main AI object.
    • Constructor Detail

      • AIInGameInputHandler

        public AIInGameInputHandler​(FreeColServer freeColServer,
                                    Player player,
                                    AIMain aiMain)
        The constructor to use.
        Parameters:
        freeColServer - The main server.
        player - The Player to manage.
        aiMain - The main AI-object.
    • Method Detail

      • getMyAIPlayer

        private AIPlayer getMyAIPlayer()
        Get the AI player using this handler.
        Returns:
        The AIPlayer.
      • read

        public Message read​(Connection connection)
                     throws FreeColException,
                            javax.xml.stream.XMLStreamException
        Read an incoming Message.
        Specified by:
        read in interface MessageHandler
        Parameters:
        connection - The Connection to read from.
        Returns:
        The Message found, or null if none.
        Throws:
        FreeColException - if the message can not be instantiated.
        javax.xml.stream.XMLStreamException - if there is a problem reading the message.