Class FreeColClientHolder

    • Field Detail

      • freeColClient

        private final FreeColClient freeColClient
        The main client object.
    • Constructor Detail

      • FreeColClientHolder

        protected FreeColClientHolder​(FreeColClient freeColClient)
        Simple constructor.
        Parameters:
        freeColClient - The FreeColClient to hold.
    • Method Detail

      • askServer

        public ServerAPI askServer()
        Meaningfully named access to the server API.
        Returns:
        The ServerAPI.
      • currentPlayerIsMyPlayer

        protected boolean currentPlayerIsMyPlayer()
        Check if the current player is the client player.
        Returns:
        True if the client player is current.
      • getClientOptions

        protected ClientOptions getClientOptions()
        Get the client options.
        Returns:
        The ClientOptions held by the client.
      • getConnectController

        protected ConnectController getConnectController()
        Get the connect controller.
        Returns:
        The ConnectController held by the client.
      • getFreeColClient

        protected FreeColClient getFreeColClient()
        Get the main client object.
        Returns:
        The FreeColClient held by this object.
      • getFreeColServer

        protected FreeColServer getFreeColServer()
        Get the server.
        Returns:
        The FreeColServer held by the client.
      • getGame

        protected Game getGame()
        Get the game.
        Returns:
        The Game held by the client.
      • getMap

        protected Map getMap()
        Get the Map.
        Returns:
        The game Map.
      • getGUI

        protected GUI getGUI()
        Get the GUI.
        Returns:
        The GUI held by the client.
      • getMyPlayer

        protected Player getMyPlayer()
        Get the client player.
        Returns:
        The Player associated with the client.
      • getSpecification

        protected Specification getSpecification()
        Get the specification.
        Returns:
        The Specification held by the game.
      • igc

        protected InGameController igc()
        Get the in-game controller.
        Returns:
        The InGameController for the client.
      • pgc

        protected PreGameController pgc()
        Get the pre-game controller.
        Returns:
        The PreGameController for the client.