int32 main() { do { PrintIntro(); SetDifficulty(); PlayGame(); } while (PlayAgain()); return 0; }
void LevelManager::SetContinueType() { int state = dynamic_cast<Level*>(m_pCurrent.get())->GetContinueState();//Get the Continue State switch(state)//Call the method based on the continue state { case Continue::CONTINUE_STATE::NEXT: NextLevel(); break; case Continue::CONTINUE_STATE::QUIT: MenuReturn(); break; case Continue::CONTINUE_STATE::AGAIN: PlayAgain(); break; case Continue::CONTINUE_STATE::NONE: MessageBox(Global::GetHWND(), L"MAJOR ERROR I DON'T KNOW HOW YOU GOT HERE!!!!!", L"Error", MB_OK); FLAG_EXIT = true; break; } }