Class EndGameController
java.lang.Object
it.polimi.ingsw.view.gui.controllers.GUIController
it.polimi.ingsw.view.gui.controllers.EndGameController
public class EndGameController extends GUIController
Java controller of endGameWin.fxml and endGameLose.fxml files
-
Field Summary
Fields inherited from class it.polimi.ingsw.view.gui.controllers.GUIController
client -
Constructor Summary
Constructors Constructor Description EndGameController() -
Method Summary
Modifier and Type Method Description voidsetWinner(java.lang.String winner, int score)Set which player is the winnerMethods 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
-
EndGameController
public EndGameController()
-
-
Method Details
-
setWinner
public void setWinner(java.lang.String winner, int score)Set which player is the winner- Parameters:
winner- winner usernamescore- score
-