diff options
| author | Charlie Blake | 2018-07-19 16:16:39 +0100 |
|---|---|---|
| committer | Charlie Blake | 2018-07-19 16:16:39 +0100 |
| commit | 2775a9ba0ef4e698acd0c0d32179d6a1e404297a (patch) | |
| tree | 61809b6e3d81f978c6edb3e165bae9f7836cbd0b /src/main/game/sol_rules.h | |
| parent | Add Canfield unit tests (diff) | |
| download | metasol-2775a9ba0ef4e698acd0c0d32179d6a1e404297a.tar.gz metasol-2775a9ba0ef4e698acd0c0d32179d6a1e404297a.zip | |
Add parsing of new rules
Diffstat (limited to 'src/main/game/sol_rules.h')
| -rw-r--r-- | src/main/game/sol_rules.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/main/game/sol_rules.h b/src/main/game/sol_rules.h index 25dcbe4..2384b21 100644 --- a/src/main/game/sol_rules.h +++ b/src/main/game/sol_rules.h @@ -7,7 +7,9 @@ #include <string> #include <vector> +#include <boost/optional.hpp> +#include "card.h" #include "../../../lib/rapidjson/document.h" struct sol_rules { @@ -23,7 +25,8 @@ struct sol_rules { enum class spaces_policy { NO_BUILD, KINGS, - ANY + ANY, + AUTO_RESERVE_THEN_WASTE }; enum class accordion_policy { SAME_RANK, @@ -60,11 +63,13 @@ struct sol_rules { spaces_policy spaces_pol; built_group_type move_built_group; build_policy built_group_pol; + bool tableau_wraps; bool two_decks; uint8_t max_rank; bool hole; bool foundations_present; foundations_init_type foundations_init_cards; + boost::optional<card::rank_t> foundations_base; bool foundations_removable; bool foundations_only_comp_piles; bool diagonal_deal; |
