solitare/columnslot.cpp

22 lines
405 B
C++
Raw Normal View History

2024-12-02 15:10:51 +00:00
#include "columnslot.h"
ColumnSlot::ColumnSlot(PlayingCard* card, bool revealed, QObject* parent)
: QObject(parent), m_card(card), m_revealed(revealed)
{}
PlayingCard* ColumnSlot::card() const {
return m_card;
}
bool ColumnSlot::isRevealed() const {
return m_revealed;
}
void ColumnSlot::reveal() {
if (m_revealed)
return;
m_revealed = true;
emit revealedChanged();
}