Package it.polimi.ingsw.view
Interface ClientModelUpdaterInterface
- All Known Implementing Classes:
ClientModelState,GUI
public interface ClientModelUpdaterInterface
Interface used to receive all the updates from the client
-
Method Summary
Modifier and Type Method Description voidcardSlotUpdate(java.lang.String username, CardSlotUpdate stateUpdate)Updates the CardSlots of the player whose name is the one passed as parametervoidchestMergeUpdate(java.lang.String username)Merges the temporary chest of the player whose name is the one passed as parameter into his chestvoidchestUpdate(java.lang.String username, ChestUpdate stateUpdate)Updates the chest of the player whose name is the one passed as parametervoiddevDeckSetup(DevelopCardDeckSetup stateUpdate)Setups the DevelopCard DeckvoiddevDeckUpdate(DevelopCardDeckUpdate stateUpdate)Updates the DevelopCard DeckvoiddiscardedLeaderUpdate(java.lang.String username, LeaderUpdate stateUpdate)Updates not activated LeaderCards of the player whose name is the one passed as parameter discarding one of themvoidgameStartedSetup(java.util.List<java.lang.String> stateUpdate)Setups players turn ordervoidleaderSetup(java.lang.String username, LeaderSetup stateUpdate)Setups non activated LeaderCards of the player whose name is the one passed as parametervoidleaderUpdate(java.lang.String username, LeaderUpdate stateUpdate)Updates not activated LeaderCards of the player whose name is the one passed as parameter activating one of themvoidlorenzoDevDeckUpdate(DevelopCardDeckUpdate stateUpdate)Updates the DevelopCard Deck because Lorenzo has discarded a DevelopCard from the DeckvoidlorenzoShuffleUpdate()Updates Lorenzo because of having shuffledvoidlorenzoTrackUpdate(TrackUpdate stateUpdate)Updates Lorenzo's trackvoidmarketSetup(MarketSetup stateUpdate)Setups the marketvoidmarketUpdate(MarketUpdate stateUpdate)Updates the marketvoidsetClientUsername(java.lang.String username)Sets the username of this client, which is passed as parametervoidtempChestUpdate(java.lang.String username, ChestUpdate stateUpdate)Updates the temporary chest of the player whose name is the one passed as parametervoidtrackUpdate(java.lang.String username, TrackUpdate stateUpdate)Updates the track of the player whose name is the one passed as parametervoidvaticanUpdate(java.lang.String username, VaticanReport stateUpdate)Updates the vatican cells of the player whose name is the one passed as parametervoidwarehouseUpdate(java.lang.String username, WarehouseUpdate stateUpdate)Updates the warehouse of the player whose name is the one passed as parameter
-
Method Details
-
setClientUsername
void setClientUsername(java.lang.String username)Sets the username of this client, which is passed as parameter- Parameters:
username- , username of this client
-
chestUpdate
Updates the chest of the player whose name is the one passed as parameter- Parameters:
username- , username of the player on which the update needs to take placestateUpdate- , update content
-
warehouseUpdate
Updates the warehouse of the player whose name is the one passed as parameter- Parameters:
username- , username of the player on which the update needs to take placestateUpdate- , update content
-
leaderUpdate
Updates not activated LeaderCards of the player whose name is the one passed as parameter activating one of them- Parameters:
username- , username of the player on which the update needs to take placestateUpdate- , update content
-
leaderSetup
Setups non activated LeaderCards of the player whose name is the one passed as parameter- Parameters:
username- , username of the player on which the setup needs to take placestateUpdate- , setup content
-
marketUpdate
Updates the market- Parameters:
stateUpdate- , update content
-
marketSetup
Setups the market- Parameters:
stateUpdate- , setup content
-
cardSlotUpdate
Updates the CardSlots of the player whose name is the one passed as parameter- Parameters:
username- , username of the player on which the update needs to take placestateUpdate- , update content
-
trackUpdate
Updates the track of the player whose name is the one passed as parameter- Parameters:
username- , username of the player on which the update needs to take placestateUpdate- , update content
-
vaticanUpdate
Updates the vatican cells of the player whose name is the one passed as parameter- Parameters:
username- , username of the player on which the update needs to take placestateUpdate- , update content
-
devDeckUpdate
Updates the DevelopCard Deck- Parameters:
stateUpdate- , update content
-
devDeckSetup
Setups the DevelopCard Deck- Parameters:
stateUpdate- , setup content
-
tempChestUpdate
Updates the temporary chest of the player whose name is the one passed as parameter- Parameters:
username- , username of the player on which the update needs to take placestateUpdate- , update content
-
chestMergeUpdate
void chestMergeUpdate(java.lang.String username)Merges the temporary chest of the player whose name is the one passed as parameter into his chest- Parameters:
username- , username of the player on which the update needs to take place
-
discardedLeaderUpdate
Updates not activated LeaderCards of the player whose name is the one passed as parameter discarding one of them- Parameters:
username- , username of the player on which the update needs to take placestateUpdate- , update content
-
lorenzoTrackUpdate
Updates Lorenzo's track- Parameters:
stateUpdate- , update content
-
lorenzoShuffleUpdate
void lorenzoShuffleUpdate()Updates Lorenzo because of having shuffled -
lorenzoDevDeckUpdate
Updates the DevelopCard Deck because Lorenzo has discarded a DevelopCard from the Deck- Parameters:
stateUpdate- , update content
-
gameStartedSetup
void gameStartedSetup(java.util.List<java.lang.String> stateUpdate)Setups players turn order- Parameters:
stateUpdate- , update content
-