Class PlayerboardController
java.lang.Object
it.polimi.ingsw.view.gui.controllers.GUIController
it.polimi.ingsw.view.gui.controllers.PlayerboardController
public class PlayerboardController extends GUIController
-
Field Summary
Fields inherited from class it.polimi.ingsw.view.gui.controllers.GUIController
client -
Constructor Summary
Constructors Constructor Description PlayerboardController() -
Method Summary
Modifier and Type Method Description voidaskLeaderOnWhite()Ask the player which leader must be used to convert a white marblevoidchestMergeUpdate()Display merging between tmp chest and normal chestvoidclearLeaderVbox()voiddisableAll()Set all disabledvoiddisableLeader()Disable leader cardsvoiddisableProduction()Set disabled all the component concerning productionvoidenableLeader()Enable leader cardsvoidenableProduction()Set disabled all the correct component for the producing phasejava.lang.StringgetUsername()voidleaderSetup(java.util.List<java.lang.Integer> ledersID)Display leader cards during setupvoidsetupLorenzo()Set the black cross visiblevoidsetUsername(java.lang.String username)voidthisClientPlayer()voidupdateActivatedLeader(LeaderUpdate stateUpdate)Display an activated leader card updatevoidupdateCardSlot(CardSlotUpdate stateUpdate)Display a card slot updatevoidupdateChest(ChestUpdate stateUpdate)Display a chest updatevoidupdateDiscardedLeader(LeaderUpdate stateUpdate)Display a discarded leader card updatevoidupdateLorenzoTrack(TrackUpdate stateUpdate)Display a Lorenzo track updatevoidupdatePlayerTrack(TrackUpdate stateUpdate)Display a track position updatevoidupdateTempChest(ChestUpdate chestUpdate)Display a tmp chest update after productionvoidupdateVatican(VaticanReport stateUpdate)Display a pope cards track updatevoidupdateWarehouse(WarehouseUpdate update)Display a warehouse updateMethods inherited from class it.polimi.ingsw.view.gui.controllers.GUIController
setClientMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
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
Display a chest update- Parameters:
stateUpdate- model update represent a chest update
-
updateTempChest
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
Display a track position update- Parameters:
stateUpdate- a model update representing a track update
-
updateVatican
Display a pope cards track update- Parameters:
stateUpdate- the vatican report update
-
updateCardSlot
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
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
Display a discarded leader card update- Parameters:
stateUpdate- the leader update
-
updateActivatedLeader
Display an activated leader card update- Parameters:
stateUpdate- the leader update
-
setupLorenzo
public void setupLorenzo()Set the black cross visible -
updateLorenzoTrack
Display a Lorenzo track update- Parameters:
stateUpdate- the track update
-
clearLeaderVbox
public void clearLeaderVbox()
-