mirror of
https://github.com/kierankihn/uno-game.git
synced 2025-12-27 10:23:16 +08:00
feat(game): add getFront and front for DiscardTile
This commit is contained in:
@@ -39,6 +39,11 @@ namespace UNO::GAME {
|
||||
return card;
|
||||
}
|
||||
|
||||
Card CardTile::front() const
|
||||
{
|
||||
return cards_.front();
|
||||
}
|
||||
|
||||
bool CardTile::isEmpty() const
|
||||
{
|
||||
return cards_.empty();
|
||||
@@ -63,6 +68,11 @@ namespace UNO::GAME {
|
||||
this->pushFront(card);
|
||||
}
|
||||
|
||||
Card DiscardPile::getFront()
|
||||
{
|
||||
return this->front();
|
||||
}
|
||||
|
||||
Deck::Deck() = default;
|
||||
|
||||
void Deck::init()
|
||||
|
||||
Reference in New Issue
Block a user