mirror of
https://github.com/kierankihn/uno-game.git
synced 2025-12-27 02:13:18 +08:00
fix(game): changed isEmpty of CardTile from protected to public
This commit is contained in:
@@ -53,11 +53,6 @@ namespace UNO::GAME {
|
||||
*/
|
||||
[[nodiscard]] Card front() const;
|
||||
|
||||
/**
|
||||
* @return 牌堆是否为空
|
||||
*/
|
||||
[[nodiscard]] bool isEmpty() const;
|
||||
|
||||
/**
|
||||
* 将牌堆中的卡牌随机洗混
|
||||
*/
|
||||
@@ -70,12 +65,17 @@ namespace UNO::GAME {
|
||||
|
||||
public:
|
||||
CardTile();
|
||||
|
||||
/**
|
||||
* @return 牌堆是否为空
|
||||
*/
|
||||
[[nodiscard]] bool isEmpty() const;
|
||||
};
|
||||
|
||||
/**
|
||||
* @brief 弃牌堆
|
||||
*/
|
||||
class DiscardPile : CardTile {
|
||||
class DiscardPile : public CardTile {
|
||||
public:
|
||||
DiscardPile();
|
||||
|
||||
@@ -93,7 +93,7 @@ namespace UNO::GAME {
|
||||
/**
|
||||
* @brief 起牌堆
|
||||
*/
|
||||
class Deck : CardTile {
|
||||
class Deck : public CardTile {
|
||||
public:
|
||||
Deck();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user