OOP A3 Board Games 35
a Board Game Project Made by Students at Cairo FCAI
Loading...
Searching...
No Matches
GameManager< T > Class Template Reference

Controls the flow of a board game between two players. More...

#include <BoardGame_Classes.h>

Public Member Functions

 GameManager (Board< T > *b, Player< T > *p[2], UI< T > *u)
 Construct a game manager with board, players, and UI.
void run ()
 Run the main game loop until someone wins or the game ends.

Detailed Description

template<typename T>
class GameManager< T >

Controls the flow of a board game between two players.

Template Parameters
TType of symbol used on the board.

Constructor & Destructor Documentation

◆ GameManager()

template<typename T>
GameManager< T >::GameManager ( Board< T > * b,
Player< T > * p[2],
UI< T > * u )
inline

Construct a game manager with board, players, and UI.

Member Function Documentation

◆ run()

template<typename T>
void GameManager< T >::run ( )
inline

Run the main game loop until someone wins or the game ends.


The documentation for this class was generated from the following file: