diff --git a/src/game/GameState.h b/src/game/GameState.h index 983ac96..57c6d64 100644 --- a/src/game/GameState.h +++ b/src/game/GameState.h @@ -139,6 +139,8 @@ namespace UNO::GAME { */ [[nodiscard]] bool getIsReversed() const; + [[nodiscard]] size_t getDrawCount() const; + /** * 向对局中添加玩家 * @param playerState 要添加的玩家状态 @@ -192,6 +194,13 @@ namespace UNO::GAME { return this->isReversed_; } + template + size_t GameState::getDrawCount() const + { + return this->drawCount_; + } + + template void GameState::addPlayer(PlayerStateType playerState) {