public interface ITurnTrackerView extends IView
| Modifier and Type | Method and Description |
|---|---|
void |
initializePlayer(int playerIndex,
java.lang.String playerName,
CatanColor playerColor)
Initializes the properties for a player in the turn tracker display
|
void |
setLocalPlayerColor(CatanColor value)
Sets the color to display for the local player
|
void |
updateGameState(java.lang.String stateMessage,
boolean enable)
Updates the game state button's message and enable state
|
void |
updatePlayer(int playerIndex,
int points,
boolean highlight,
boolean largestArmy,
boolean longestRoad)
Updates the properties for a player in the turn tracker display
|
getController, setControllervoid setLocalPlayerColor(CatanColor value)
value - The local player's colorvoid initializePlayer(int playerIndex,
java.lang.String playerName,
CatanColor playerColor)
playerIndex - The player's index (0 - 3)playerName - The player's nameplayerColor - The player's colorvoid updatePlayer(int playerIndex,
int points,
boolean highlight,
boolean largestArmy,
boolean longestRoad)
playerIndex - The player's index (0-3)points - The number of victory points the player hashighlight - Whether or not the player's display should be highlightedlargestArmy - Whether or not the player has the largest armylongestRoad - Whether or not the player has the longest roadvoid updateGameState(java.lang.String stateMessage,
boolean enable)
stateMessage - The new message to be displayed in the game state buttonenable - Whether or not the game state button should be enabled