From 03e1d363e2a3bcc9e2caf463ed7d5b40814f2c6e Mon Sep 17 00:00:00 2001 From: Kieran Kihn <114803508+kierankihn@users.noreply.github.com> Date: Mon, 17 Nov 2025 21:14:59 +0800 Subject: [PATCH] fix(game): move `clear` method to public section in `CardTile` --- src/game/CardTile.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/game/CardTile.h b/src/game/CardTile.h index 2d0003f..985122a 100644 --- a/src/game/CardTile.h +++ b/src/game/CardTile.h @@ -58,11 +58,6 @@ namespace UNO::GAME { */ void shuffle(); - /** - * 清空牌堆 - */ - void clear(); - public: CardTile(); @@ -70,6 +65,11 @@ namespace UNO::GAME { * @return 牌堆是否为空 */ [[nodiscard]] bool isEmpty() const; + + /** + * 清空牌堆 + */ + void clear(); }; /**