diff options
Diffstat (limited to 'src/main/game/sol_rules.h')
| -rw-r--r-- | src/main/game/sol_rules.h | 21 |
1 files changed, 18 insertions, 3 deletions
diff --git a/src/main/game/sol_rules.h b/src/main/game/sol_rules.h index 0673771..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, @@ -44,17 +47,29 @@ struct sol_rules { RIGHT, BOTH }; + enum class built_group_type { + YES, + NO, + WHOLE_PILE + }; + enum class foundations_init_type { + NONE, + ONE, + ALL + }; uint8_t tableau_pile_count; build_policy build_pol; spaces_policy spaces_pol; - bool move_built_group; + 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; - bool foundations_init_card; + foundations_init_type foundations_init_cards; + boost::optional<card::rank_t> foundations_base; bool foundations_removable; bool foundations_only_comp_piles; bool diagonal_deal; |
