enum GAME_STATE { TITLE, PLAY, CLEAR, GAMEOVER, }; GAME_STATE state = GAME_STATE::TITLE; //状態の初期化 while (System::Update()) { switch (state) { case TITLE: TitleUpdate(board); TitleDraw(); break; case PLAY: PlayUpdate(board); PlayDraw(board); break; case CLEAR: ClearUpdate(board); ClearDraw(); break; case GAMEOVER: break; default: break; } }