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 | |
| 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')
| -rw-r--r-- | src/main/game/card.h | 1 | ||||
| -rw-r--r-- | src/main/game/pile.h | 9 | ||||
| -rw-r--r-- | src/main/input-output/command_line_helper.h | 1 |
3 files changed, 7 insertions, 4 deletions
diff --git a/src/main/game/card.h b/src/main/game/card.h index d184b45..1cac344 100644 --- a/src/main/game/card.h +++ b/src/main/game/card.h @@ -14,6 +14,7 @@ public: // using a string (e.g. "AS") card(int, int); card(const char*); + int get_rank() const; char get_suit() const; int get_suit_val() const; 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*); diff --git a/src/main/input-output/command_line_helper.h b/src/main/input-output/command_line_helper.h index 9cb772b..bb2f698 100644 --- a/src/main/input-output/command_line_helper.h +++ b/src/main/input-output/command_line_helper.h @@ -10,6 +10,7 @@ class command_line_helper { public: command_line_helper(); + bool parse(int argc, const char* argv[]); const std::vector<std::string> get_input_files(); const std::string get_solitaire_type(); |
