extracted game logic into separate library

This commit is contained in:
Lauchmelder 2022-01-15 16:45:52 +01:00
parent c6a262a57f
commit 690b577e87
27 changed files with 388 additions and 175 deletions

19
engine/CardStack.hpp Normal file
View file

@ -0,0 +1,19 @@
#pragma once
#include <memory>
#include <vector>
#include "Card.hpp"
class CardStack
{
public:
CardStack();
~CardStack();
std::shared_ptr<Card> DrawCard();
inline bool Empty() const { return stack.empty(); }
private:
std::vector<std::shared_ptr<Card>> stack;
};