diff options
| author | thecharlesblake | 2018-01-03 12:51:47 +0000 |
|---|---|---|
| committer | thecharlesblake | 2018-01-03 12:51:47 +0000 |
| commit | 758d919cb5d600a421636ce54df9f28b6fc832ba (patch) | |
| tree | 57f8311a9452a9d193bb0b5c71f4621479593196 /src/main/game/sol_rules.h | |
| parent | Rename util to json_helper (diff) | |
| download | metasol-758d919cb5d600a421636ce54df9f28b6fc832ba.tar.gz metasol-758d919cb5d600a421636ce54df9f28b6fc832ba.zip | |
Refactor sol_rules into seperate parser class
Diffstat (limited to 'src/main/game/sol_rules.h')
| -rw-r--r-- | src/main/game/sol_rules.h | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/src/main/game/sol_rules.h b/src/main/game/sol_rules.h index 3d4995d..1e6dfa4 100644 --- a/src/main/game/sol_rules.h +++ b/src/main/game/sol_rules.h @@ -5,16 +5,13 @@ #ifndef SOLVITAIRE_SOL_RULES_H #define SOLVITAIRE_SOL_RULES_H -#include <vector> #include <string> -#include <boost/optional.hpp> #include <rapidjson/document.h> #include "card.h" -class sol_rules { -public: +struct sol_rules { // Tableau policies enum class build_order { DESCENDING, @@ -31,9 +28,6 @@ public: ANY }; - static const sol_rules from_preset(std::string); - static const sol_rules from_file(std::string); - uint8_t tableau_pile_count; build_order build_ord; build_policy build_pol; @@ -43,10 +37,6 @@ public: bool foundations; uint8_t cells; uint8_t stock_size; - -private: - static sol_rules get_default(); - static void modify_sol_rules(sol_rules&, rapidjson::Document&); }; #endif //SOLVITAIRE_SOL_RULES_H |
