|
TheCOSCGameProject
1.0
|
Abstract base class for mini-games. More...
#include <minigames.h>

Public Member Functions | |
| virtual bool | start ()=0 |
| Starts the game. More... | |
| virtual | ~Game () |
| Virtual destructor for proper cleanup of derived classes. More... | |
| virtual std::string | getGameName ()=0 |
| Gets the name of the game. More... | |
Abstract base class for mini-games.
The Game class provides a common interface for all mini-games, enforcing the implementation of the start method and providing a way to retrieve the game's name.
|
inlinevirtual |
Virtual destructor for proper cleanup of derived classes.
|
pure virtual |
Gets the name of the game.
Implemented in BlackJack, CodeGuesser, and TicTacToe.
|
pure virtual |
Starts the game.
This is a pure virtual function that must be implemented by any derived class.
Implemented in BlackJack, CodeGuesser, and TicTacToe.
1.8.13