mirror of
https://github.com/kierankihn/uno-game.git
synced 2025-12-27 02:13:18 +08:00
fix(game): move clear method to public section in CardTile
This commit is contained in:
@@ -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();
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user