From c3a5a3ee5fab5b8afbf6aded00991d81c2973c24 Mon Sep 17 00:00:00 2001 From: Kieran Kihn <114803508+kierankihn@users.noreply.github.com> Date: Mon, 17 Nov 2025 14:01:12 +0800 Subject: [PATCH] feat(game): add `getDrawCount` method to `GameState` --- src/game/GameState.h | 9 +++++++++ 1 file changed, 9 insertions(+) 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) {