diff options
| author | thecharlesblake | 2017-11-12 10:01:18 +0000 |
|---|---|---|
| committer | thecharlesblake | 2017-11-12 10:01:18 +0000 |
| commit | dc2e84e3ca0ceda7753f1aaec1e648dbde24e9e3 (patch) | |
| tree | ae1c06ef31a5843a23707145a96437a2559cea52 /src/main/game/pile.h | |
| parent | Init piles in game_state & make get states const (diff) | |
| download | metasol-dc2e84e3ca0ceda7753f1aaec1e648dbde24e9e3.tar.gz metasol-dc2e84e3ca0ceda7753f1aaec1e648dbde24e9e3.zip | |
Tidy up headers for consistency
Diffstat (limited to 'src/main/game/pile.h')
| -rw-r--r-- | src/main/game/pile.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/main/game/pile.h b/src/main/game/pile.h index 4d2c80d..c967cc1 100644 --- a/src/main/game/pile.h +++ b/src/main/game/pile.h @@ -19,25 +19,26 @@ public: card top_card() const; bool empty() const; unsigned long size() const; - + void place(const card&); card take(); - + card& operator[] (std::vector<card>::size_type); card operator[] (std::vector<card>::size_type) const; friend bool operator==(const pile&, const pile&); friend std::ostream & operator<<(std::ostream &, pile const &); + private: bool one_lt(int, int) const; - std::vector<card> pile_vec; - const bool remove; const sol_rules::build_order build_order; const sol_rules::build_policy build_policy; const bool build_order_loops; const int max_rank; + + std::vector<card> pile_vec; }; void move(pile*, pile*); |
