Package it.polimi.ingsw.view
Interface ViewInterface
- All Superinterfaces:
LorenzoViewInterface
public interface ViewInterface extends LorenzoViewInterface
-
Method Summary
Modifier and Type Method Description voiddisplayAlreadyProduced()Displays that the production on a certain card can't be done because it as already been used in this turnvoiddisplayCannotDiscardActiveLeader()Displays that the deletion of the leader the player wanted to discard can't be done because it's activevoiddisplayCannotJoinMatch()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 startedvoiddisplayChooseLeaderOnWhite()Displays the choice of the LeaderCard in case the marble to insert is whitevoiddisplayDefaultCanvas(java.lang.String username)Displays the default canvas of the player whose name is the one passed as parametervoiddisplayDisconnected()voiddisplayFailedLogin()Displays that the username is already takenvoiddisplayFatalError(java.lang.String errorMessage)Display a fatal error and ask the player to close the gamevoiddisplayFinalPhase()Enable the only actions that can be done in Final PhasevoiddisplayGameAlreadyStarted()Displays that the player can't join the game because it's already startedvoiddisplayGameStarted()Displays that the game is startedvoiddisplayInitialResourcesChoice()Displays the four marbles associated to a resourcevoiddisplayInvalidCardPlacement()Displays that a card can't be placed in the slot the player wanted tovoiddisplayInvalidLeadercard()Displays that the player has inserted a LeaderCard that is not validvoiddisplayLeaderHand()Displays the LeaderCard of this client that have not been activated yetvoiddisplayLobbyCreated()Displays that the lobby has been successfully createdvoiddisplayLogin()Displays the login setup.voiddisplayLoginSuccessful(java.lang.String username)Displays that login setup has been operated correctlyvoiddisplayMarbleShopping()Displays the marbles player got from the market and let him insert onevoiddisplayMarket()voiddisplayMatchAlreadyExist()Displays that the name of the match the player tried to create is occupied by another matchvoiddisplayNetworkSetup()Display the network setup options.voiddisplayNotActivatableProduction()Displays that the production on a certain card can't be done because resources are not enoughvoiddisplayNotBuyable()Displays that the player can't buy the card he wanted because he hasn't enough resourcesvoiddisplayNotEnoughResources()Displays that the action can't be performed because resources are not enoughvoiddisplayOtherUserJoined(Message msg)Displays that another player joined the lobbyvoiddisplayPlainCanvas()Displays a plain canvasvoiddisplayPlayersNumberChoice()Displays the choice of the number of playersvoiddisplayPlayerTurn(java.lang.String player)Displays that it's the turn of the player whose name is the one passed as parametervoiddisplayProducingPhase()Enable the only actions that can be done in Production PhasevoiddisplayRecievedLeadercards()voiddisplayReconnection()voiddisplayServerDown()Displays that the server has crashedvoiddisplaySetupFailure()Displays that the server can not be reachedvoiddisplayShoppingPhase()voiddisplayWaiting()voiddisplayYouJoined()Displays that you have successfully joined the lobbyvoiddisplayYourTurn(java.lang.String username)Displays to the player whose name is the one passed as parameter that is it's turnvoidsetClientTurnManager(ClientTurnManagerInterface turnManager)voidstartingSetupUpdate()Starts the setup of the gameMethods inherited from interface it.polimi.ingsw.view.LorenzoViewInterface
displayGameEnded, displayLorenzoDiscarded, displayLorenzoMoved, displayLorenzoShuffled
-
Method Details
-
setClientTurnManager
-
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
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
-