# GameOverSystem

This class is responsible for setting up and displaying the game over text when the game has ended. It manages the font and the text to be displayed on the game window.

```cpp
class GameOverSystem {
public:
    /**
     * @brief Constructs the GameOverSystem object.
     * 
     * Initializes the game over font and text, setting up their properties such as size, color, and content.
     */
    GameOverSystem();

    /**
     * @brief Displays the game over text on the specified window.
     * 
     * Clears the window, positions the game over text at the center, and then draws the text.
     * 
     * @param w Pointer to the SFML RenderWindow where the game over text is displayed.
     */
    void gameOverDisplay(sf::RenderWindow* w);

    sf::Font gameOverFont; ///< The font used for displaying the game over text.
    sf::Text gameOverText; ///< The text object for the game over message.
};
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://r-type-5.gitbook.io/r-type/development-guidelines/ecs/graphicsystem/gameoversystem.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
