Interface ViewInterface

All Superinterfaces:
LorenzoViewInterface
All Known Implementing Classes:
Cli, GUI

public interface ViewInterface
extends LorenzoViewInterface
  • Method Details

    • setClientTurnManager

      void setClientTurnManager​(ClientTurnManagerInterface turnManager)
    • displayMarbleShopping

      void displayMarbleShopping()
      Displays the marbles player got from the market and let him insert one
    • displayLeaderHand

      void displayLeaderHand()
      Displays the LeaderCard of this client that have not been activated yet
    • displayInitialResourcesChoice

      void displayInitialResourcesChoice()
      Displays the four marbles associated to a resource
    • displayNetworkSetup

      void displayNetworkSetup()
      Display the network setup options. Asks for Ip address and port of the server
    • displayLogin

      void displayLogin()
      Displays the login setup. Asks for username, if the player want to join or create a match and the room name
    • displaySetupFailure

      void displaySetupFailure()
      Displays that the server can not be reached
    • displayDisconnected

      void displayDisconnected()
    • displayFailedLogin

      void displayFailedLogin()
      Displays that the username is already taken
    • displayLoginSuccessful

      void displayLoginSuccessful​(java.lang.String username)
      Displays that login setup has been operated correctly
      Parameters:
      username - the player's username
    • displayLobbyCreated

      void displayLobbyCreated()
      Displays that the lobby has been successfully created
    • displayOtherUserJoined

      void displayOtherUserJoined​(Message msg)
      Displays that another player joined the lobby
      Parameters:
      msg - , message containing all the information to display
    • displayYouJoined

      void displayYouJoined()
      Displays that you have successfully joined the lobby
    • displayPlayersNumberChoice

      void displayPlayersNumberChoice()
      Displays the choice of the number of players
    • displayWaiting

      void displayWaiting()
    • displayServerDown

      void displayServerDown()
      Displays that the server has crashed
    • displayGameAlreadyStarted

      void displayGameAlreadyStarted()
      Displays that the player can't join the game because it's already started
    • displayReconnection

      void displayReconnection()
    • displayGameStarted

      void displayGameStarted()
      Displays that the game is started
    • displayRecievedLeadercards

      void displayRecievedLeadercards()
    • displayMarket

      void displayMarket()
    • displayPlayerTurn

      void displayPlayerTurn​(java.lang.String player)
      Displays that it's the turn of the player whose name is the one passed as parameter
      Parameters:
      player - , player's username
    • displayYourTurn

      void displayYourTurn​(java.lang.String username)
      Displays to the player whose name is the one passed as parameter that is it's turn
      Parameters:
      username - , player's username
    • displayDefaultCanvas

      void displayDefaultCanvas​(java.lang.String username)
      Displays the default canvas of the player whose name is the one passed as parameter
      Parameters:
      username - , username of the player
    • displayPlainCanvas

      void displayPlainCanvas()
      Displays a plain canvas
    • startingSetupUpdate

      void startingSetupUpdate()
      Starts the setup of the game
    • displayChooseLeaderOnWhite

      void displayChooseLeaderOnWhite()
      Displays the choice of the LeaderCard in case the marble to insert is white
    • displayFinalPhase

      void displayFinalPhase()
      Enable the only actions that can be done in Final Phase
    • displayProducingPhase

      void displayProducingPhase()
      Enable the only actions that can be done in Production Phase
    • displayShoppingPhase

      void displayShoppingPhase()
    • displayNotBuyable

      void displayNotBuyable()
      Displays that the player can't buy the card he wanted because he hasn't enough resources
    • displayInvalidLeadercard

      void displayInvalidLeadercard()
      Displays that the player has inserted a LeaderCard that is not valid
    • displayCannotDiscardActiveLeader

      void displayCannotDiscardActiveLeader()
      Displays that the deletion of the leader the player wanted to discard can't be done because it's active
    • displayNotActivatableProduction

      void displayNotActivatableProduction()
      Displays that the production on a certain card can't be done because resources are not enough
    • displayAlreadyProduced

      void displayAlreadyProduced()
      Displays that the production on a certain card can't be done because it as already been used in this turn
    • displayNotEnoughResources

      void displayNotEnoughResources()
      Displays that the action can't be performed because resources are not enough
    • displayInvalidCardPlacement

      void displayInvalidCardPlacement()
      Displays that a card can't be placed in the slot the player wanted to
    • displayMatchAlreadyExist

      void displayMatchAlreadyExist()
      Displays that the name of the match the player tried to create is occupied by another match
    • displayCannotJoinMatch

      void displayCannotJoinMatch()
      Displays that the player cannot join the match they tried to: i.e. the match doesn't exist, the match is full or the match is already started
    • displayFatalError

      void displayFatalError​(java.lang.String errorMessage)
      Display a fatal error and ask the player to close the game
      Parameters:
      errorMessage - the error description