diff options
| author | thecharlesblake | 2018-01-18 13:49:10 +0000 |
|---|---|---|
| committer | thecharlesblake | 2018-01-18 13:49:10 +0000 |
| commit | 1f078952baf3cc8512b709e345a622add91a667b (patch) | |
| tree | 9f3f3ec6508cb2a4babde747e85b43594a748221 /src/main/game/pile.cpp | |
| parent | Update parsing to check correct features (diff) | |
| download | metasol-1f078952baf3cc8512b709e345a622add91a667b.tar.gz metasol-1f078952baf3cc8512b709e345a622add91a667b.zip | |
Add vector and initializer lst constructor to pile
Diffstat (limited to 'src/main/game/pile.cpp')
| -rw-r--r-- | src/main/game/pile.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/main/game/pile.cpp b/src/main/game/pile.cpp index ba7c1b9..21eddc0 100644 --- a/src/main/game/pile.cpp +++ b/src/main/game/pile.cpp @@ -9,7 +9,11 @@ using namespace std; -pile::pile(std::vector<card> pv) : pile_vec(pv) {} +pile::pile(std::vector<card> pv) : pile_vec(pv) { +} + +pile::pile(std::initializer_list<card> il) : pile_vec(il) { +} card pile::top_card() const { assert(!empty()); |
