Class PlayerboardController

java.lang.Object
it.polimi.ingsw.view.gui.controllers.GUIController
it.polimi.ingsw.view.gui.controllers.PlayerboardController

public class PlayerboardController
extends GUIController
  • Constructor Details

    • PlayerboardController

      public PlayerboardController()
  • Method Details

    • setUsername

      public void setUsername​(java.lang.String username)
    • getUsername

      public java.lang.String getUsername()
    • thisClientPlayer

      public void thisClientPlayer()
    • leaderSetup

      public void leaderSetup​(java.util.List<java.lang.Integer> ledersID)
      Display leader cards during setup
      Parameters:
      ledersID - leader cards ids list
    • updateChest

      public void updateChest​(ChestUpdate stateUpdate)
      Display a chest update
      Parameters:
      stateUpdate - model update represent a chest update
    • updateTempChest

      public void updateTempChest​(ChestUpdate chestUpdate)
      Display a tmp chest update after production
      Parameters:
      chestUpdate - model update represent a chest update
    • chestMergeUpdate

      public void chestMergeUpdate()
      Display merging between tmp chest and normal chest
    • updatePlayerTrack

      public void updatePlayerTrack​(TrackUpdate stateUpdate)
      Display a track position update
      Parameters:
      stateUpdate - a model update representing a track update
    • updateVatican

      public void updateVatican​(VaticanReport stateUpdate)
      Display a pope cards track update
      Parameters:
      stateUpdate - the vatican report update
    • updateCardSlot

      public void updateCardSlot​(CardSlotUpdate stateUpdate)
      Display a card slot update
      Parameters:
      stateUpdate - the card slot update
    • askLeaderOnWhite

      public void askLeaderOnWhite()
      Ask the player which leader must be used to convert a white marble
    • updateWarehouse

      public void updateWarehouse​(WarehouseUpdate update)
      Display a warehouse update
      Parameters:
      update - the warehouse update
    • enableProduction

      public void enableProduction()
      Set disabled all the correct component for the producing phase
    • disableProduction

      public void disableProduction()
      Set disabled all the component concerning production
    • disableLeader

      public void disableLeader()
      Disable leader cards
    • enableLeader

      public void enableLeader()
      Enable leader cards
    • disableAll

      public void disableAll()
      Set all disabled
    • updateDiscardedLeader

      public void updateDiscardedLeader​(LeaderUpdate stateUpdate)
      Display a discarded leader card update
      Parameters:
      stateUpdate - the leader update
    • updateActivatedLeader

      public void updateActivatedLeader​(LeaderUpdate stateUpdate)
      Display an activated leader card update
      Parameters:
      stateUpdate - the leader update
    • setupLorenzo

      public void setupLorenzo()
      Set the black cross visible
    • updateLorenzoTrack

      public void updateLorenzoTrack​(TrackUpdate stateUpdate)
      Display a Lorenzo track update
      Parameters:
      stateUpdate - the track update
    • clearLeaderVbox

      public void clearLeaderVbox()