22 lines
405 B
C++
22 lines
405 B
C++
|
#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();
|
||
|
}
|