extracted game logic into separate library
This commit is contained in:
parent
c6a262a57f
commit
690b577e87
27 changed files with 388 additions and 175 deletions
19
engine/CardStack.hpp
Normal file
19
engine/CardStack.hpp
Normal 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;
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue