将 Game::State 转为对应阶段名称
| 2 | |
| 3 | // 将 Game::State 转为对应阶段名称 |
| 4 | std::string Game::state_info(Game::State state){ |
| 5 | switch(state){ |
| 6 | case READY: return "准备阶段"; |
| 7 | case PICK: return "选择阶段"; |
| 8 | case ASSERT: return "断言阶段"; |
| 9 | case ACTION: return "行动阶段"; |
| 10 | case END: return "游戏结束"; |
| 11 | } |
| 12 | return ""; |
| 13 | } |
| 14 | |
| 15 | Game::Game(){ |
| 16 | players.clear(); |
nothing calls this directly
no outgoing calls
no test coverage detected