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
    void setWinner​(java.lang.String winner, int score)
    Set which player is the winner

    Methods inherited from class it.polimi.ingsw.view.gui.controllers.GUIController

    setClient

    Methods 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 username
      score - score