/**
 * processWantedSceneInitialized
 *
 * WANTED_SCENE_INITIALIZED received
 * Will start the game if WANTED_START_MESSAGE was already received
 */
void GameClientServerListener::processWantedSceneInitialized(GameCenterMessage* gcMsg) {
	CCLog("com.jino.wanted.gameClientServerListener::processWantedSceneInitialized - [readyToStart:%s][initialised:%s]",
			GameCenter::sharedGC().isGameStarted() ? "true" : "false", GameCenter::sharedGC().getSceneInitialized() ? "true" : "false");

	if (GameCenter::sharedGC().isGameStarted()) {
		onStartGame(gcMsg);
	}
}
GameSelectPage* GameSelectPageController::createGameSelectPage()
{
	GameSelectPage* gameSelectPage = new GameSelectPage();

	CENT::connect(gameSelectPage, SIGNAL(startGame(QString)), this, SLOT(onStartGame(QString)));
	CENT::connect(gameSelectPage, SIGNAL(showGameTutorial(QString)), this, SLOT(onShowGameTutorial(QString)));
	CENT::connect(gameSelectPage, SIGNAL(showSettingsGame(QString)), this, SLOT(onShowSettingsGame(QString)));
	return gameSelectPage;
}
예제 #3
0
 void SmartChessWindow::onResetGame() {
     cout << "SmartChessWindow::onResetGame" << endl;
     onEndGame();
     onStartGame();
 }