aboutsummaryrefslogtreecommitdiff
path: root/src/main/game/sol_rules.h
diff options
context:
space:
mode:
authorCharlie Blake2018-07-19 16:16:39 +0100
committerCharlie Blake2018-07-19 16:16:39 +0100
commit2775a9ba0ef4e698acd0c0d32179d6a1e404297a (patch)
tree61809b6e3d81f978c6edb3e165bae9f7836cbd0b /src/main/game/sol_rules.h
parentAdd Canfield unit tests (diff)
downloadmetasol-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.h7
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;