# Class FinalStageController

java.lang.Object
it.polimi.ingsw.is25am31.view.gui.FinalStageController

public class FinalStageController extends Object
Controller for displaying the final game results and player rankings. Shows the final scores in a sorted order and provides an option to close the application.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `FinalStageController()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `void`
  `setRanking(Map<Player,Integer> ranking)`
  Sets and displays the final game ranking in the text area.

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### FinalStageController

    public FinalStageController()

- ## Method Details

  - ### setRanking

    public void setRanking(Map<Player,Integer> ranking)
    Sets and displays the final game ranking in the text area. Players are sorted by their ranking value in ascending order (best rank first).
    Parameters:
      `ranking` - a map containing players and their final ranking positions