|
My Project
UML Lab
|
Class representing the game menu for player color selection. More...
#include <menu.h>
Public Member Functions | |
| Menu (sf::RenderWindow &window) | |
| Constructs a Menu object. | |
| Player | chooseColor () |
| Displays a menu for the player to choose their color. | |
Private Attributes | |
| sf::RenderWindow & | window |
Class representing the game menu for player color selection.
| Menu::Menu | ( | sf::RenderWindow & | window | ) |
| Player Menu::chooseColor | ( | ) |
Displays a menu for the player to choose their color.
Displays a menu for the player to choose their color (Red or Black).
This function presents a simple menu with text options for "Red" and "Black." It waits for the user to click on one of the options and returns a Player object with the corresponding color.
|
private |
Reference to the SFML RenderWindow object.