public interface IGUI
Modifier and Type | Method and Description |
---|---|
void |
displayLosses(List<de.smarten.tsuro.shared.gamemodel.Player> losers)
Iterates over the list of lost Players and displays them (via showMessage)
|
void |
fillGameList(List<de.smarten.tsuro.shared.gamemodel.Game> gameList) |
void |
initGameListWindow()
This method is called whenever the client would like to join a game
|
void |
showError(String error) |
void |
showMessage(String message)
Changes the text displayed in the GUI
|
void |
showRegisterWindow()
Initializes the GUI
|
void |
update(Observable o,
Object changedObject)
This method is called whenever there is a change in the GameModel
and handles the change in the view.
|
void |
updateCurrentPlayer(de.smarten.tsuro.shared.gamemodel.Player player)
displays the current(new) active player on the GUI
|
void showRegisterWindow() throws IOException
IOException
- if the fxml file isn't validvoid showMessage(String message)
message
- String to be displayedvoid showError(String error)
void updateCurrentPlayer(de.smarten.tsuro.shared.gamemodel.Player player)
player
- the current playervoid displayLosses(List<de.smarten.tsuro.shared.gamemodel.Player> losers)
losers
- List of players that have lostvoid update(Observable o, Object changedObject) throws Exception
o
- observes the changeschangedObject
- it's the object that was changedException
- if the object is not null and is not assignable to the type Tvoid initGameListWindow() throws IOException
IOException
- if the fxml file isn't validvoid fillGameList(List<de.smarten.tsuro.shared.gamemodel.Game> gameList)
Copyright © 2017 smarTen. All rights reserved.