示例#1
0
文件: chess.cpp 项目: bmh10/chess3d
void Update()
{
  switch (state)
  {
    case MENU:
      game->Update();
      menuManager.Update();
      
      if (menuManager.StartGame()) 
      {
        state = GAME;
        game->SetDemoMode(false);
      }
      break;
    case GAME:
      game->Update();

      if (game->QuitGame())
      {
        state = MENU;
        game = new Game();
      }
      break;
  }

  Display();
}