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
    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> stateUpdate)
    Setups players turn order
    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
    void setClientUsername​(java.lang.String username)
    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
    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
  • 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

      void chestUpdate​(java.lang.String username, ChestUpdate stateUpdate)
      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 place
      stateUpdate - , update content
    • warehouseUpdate

      void warehouseUpdate​(java.lang.String username, WarehouseUpdate stateUpdate)
      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 place
      stateUpdate - , update content
    • leaderUpdate

      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
      Parameters:
      username - , username of the player on which the update needs to take place
      stateUpdate - , update content
    • leaderSetup

      void leaderSetup​(java.lang.String username, LeaderSetup stateUpdate)
      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 place
      stateUpdate - , setup content
    • marketUpdate

      void marketUpdate​(MarketUpdate stateUpdate)
      Updates the market
      Parameters:
      stateUpdate - , update content
    • marketSetup

      void marketSetup​(MarketSetup stateUpdate)
      Setups the market
      Parameters:
      stateUpdate - , setup content
    • cardSlotUpdate

      void cardSlotUpdate​(java.lang.String username, CardSlotUpdate stateUpdate)
      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 place
      stateUpdate - , update content
    • trackUpdate

      void trackUpdate​(java.lang.String username, TrackUpdate stateUpdate)
      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 place
      stateUpdate - , update content
    • vaticanUpdate

      void vaticanUpdate​(java.lang.String username, VaticanReport stateUpdate)
      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 place
      stateUpdate - , update content
    • devDeckUpdate

      void devDeckUpdate​(DevelopCardDeckUpdate stateUpdate)
      Updates the DevelopCard Deck
      Parameters:
      stateUpdate - , update content
    • devDeckSetup

      void devDeckSetup​(DevelopCardDeckSetup stateUpdate)
      Setups the DevelopCard Deck
      Parameters:
      stateUpdate - , setup content
    • tempChestUpdate

      void tempChestUpdate​(java.lang.String username, ChestUpdate stateUpdate)
      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 place
      stateUpdate - , 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

      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
      Parameters:
      username - , username of the player on which the update needs to take place
      stateUpdate - , update content
    • lorenzoTrackUpdate

      void lorenzoTrackUpdate​(TrackUpdate stateUpdate)
      Updates Lorenzo's track
      Parameters:
      stateUpdate - , update content
    • lorenzoShuffleUpdate

      void lorenzoShuffleUpdate()
      Updates Lorenzo because of having shuffled
    • lorenzoDevDeckUpdate

      void lorenzoDevDeckUpdate​(DevelopCardDeckUpdate stateUpdate)
      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