KoiKoi/engine/Board.cpp
2022-01-15 16:45:52 +01:00

22 lines
316 B
C++

#include "Board.hpp"
#include "Game.hpp"
Board::Board(Game* parent) :
parent(parent)
{
}
void Board::RevealCard()
{
openCards.push_back(parent->GetStack().DrawCard());
if (callback)
callback(openCards.back());
}
void Board::SetRevealCallback(RevealCallbackFunc callbackFunc)
{
callback = callbackFunc;
}