Class ClientModelState

java.lang.Object
it.polimi.ingsw.view.ClientModelState
All Implemented Interfaces:
ClientModelUpdaterInterface, ClientStateViewer

public class ClientModelState
extends java.lang.Object
implements ClientModelUpdaterInterface, ClientStateViewer
Class that contains game state client side
  • Constructor Summary

    Constructors
    Constructor Description
    ClientModelState()
    Constructor for ClientModelState class
  • Method Summary

    Modifier and Type Method Description
    void cardSlotUpdate​(java.lang.String username, CardSlotUpdate stateUpdate)
    Updates the CardSlots of the player whose name is the one passed as parameter
    void chestMergeUpdate​(java.lang.String username)
    Merges the temporary chest of the player whose name is the one passed as parameter into his chest
    void chestUpdate​(java.lang.String username, ChestUpdate stateUpdate)
    Updates the chest of the player whose name is the one passed as parameter
    void devDeckSetup​(DevelopCardDeckSetup stateUpdate)
    Setups the DevelopCard Deck
    void devDeckUpdate​(DevelopCardDeckUpdate stateUpdate)
    Updates the DevelopCard Deck
    void discardedLeaderUpdate​(java.lang.String username, LeaderUpdate stateUpdate)
    Updates not activated LeaderCards of the player whose name is the one passed as parameter discarding one of them
    void gameStartedSetup​(java.util.List<java.lang.String> players)
    Setups players turn order
    int getPlayerTurnPosition()
    Returns the position that this client has in the turn list
    SimpleGameState getSimpleGameState()
    Returns the SimpleGameState
    SimplePlayerState getSimplePlayerState()
    Returns this client's SimplePlayerState
    SimplePlayerState getSimplePlayerState​(java.lang.String username)
    Returns the SimplePlayerState belonging to the specified player
    java.lang.String getUsername()
    Returns this client's username
    void leaderSetup​(java.lang.String username, LeaderSetup stateUpdate)
    Setups non activated LeaderCards of the player whose name is the one passed as parameter
    void leaderUpdate​(java.lang.String username, LeaderUpdate stateUpdate)
    Updates not activated LeaderCards of the player whose name is the one passed as parameter activating one of them
    void lorenzoDevDeckUpdate​(DevelopCardDeckUpdate stateUpdate)
    Updates the DevelopCard Deck because Lorenzo has discarded a DevelopCard from the Deck
    void lorenzoShuffleUpdate()
    Updates Lorenzo because of having shuffled
    void lorenzoTrackUpdate​(TrackUpdate stateUpdate)
    Updates Lorenzo's track
    void marketSetup​(MarketSetup stateUpdate)
    Setups the market
    void marketUpdate​(MarketUpdate stateUpdate)
    Updates the market
    java.util.List<java.lang.String> otherPlayersUsername()
    Returns the username list of the players in the game excluded this client's one
    void setClientUsername​(java.lang.String clientUsername)
    Sets the username of this client, which is passed as parameter
    void tempChestUpdate​(java.lang.String username, ChestUpdate stateUpdate)
    Updates the temporary chest of the player whose name is the one passed as parameter
    void trackUpdate​(java.lang.String username, TrackUpdate stateUpdate)
    Updates the track of the player whose name is the one passed as parameter
    java.util.List<java.lang.String> usernameList()
    Returns the username list of the players in the game
    void vaticanUpdate​(java.lang.String username, VaticanReport stateUpdate)
    Updates the vatican cells of the player whose name is the one passed as parameter
    void warehouseUpdate​(java.lang.String username, WarehouseUpdate stateUpdate)
    Updates the warehouse of the player whose name is the one passed as parameter

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait