void MainMenu::OnSinglePlayer() {
	SinglePlayerMenu* mySinglePlayer = new SinglePlayerMenu();
	if(mySinglePlayer == NULL) {
		perror("MainMenu::OnSinglePlayer()");
		exit(EXIT_FAILURE);
	}
	mySinglePlayer->showMenu();
	delete mySinglePlayer;
}
Пример #2
0
void MainMenu::onSinglePlayer() {
	SinglePlayerMenu* pSinglePlayerMenu = new SinglePlayerMenu();
	pSinglePlayerMenu->showMenu();
	delete pSinglePlayerMenu;
}