Thread for the game. More...
#include <GameLauncher.hpp>
Public Member Functions | |
GameLauncher (AbstractGame *pGame) | |
void | run () |
Q_SIGNAL void | gameDraw () |
Q_SIGNAL void | gameVictory (int color) |
Thread for the game.
The game is independant of the user interface (only attached together by the listener / notifier). Since we don't want to have an interface stucked by the game or opposite, the game is started using an indepent thread.
Q_SIGNAL void GameLauncher::gameDraw | ( | ) |
signal when the game finished with a draw
Q_SIGNAL void GameLauncher::gameVictory | ( | int | color | ) |
signal when the game finished with a victory of color
color | the winning player |
void GameLauncher::run | ( | ) |
Threaded function