diff options
| author | Charlie Blake | 2018-07-19 11:06:38 +0100 |
|---|---|---|
| committer | Charlie Blake | 2018-07-19 11:06:38 +0100 |
| commit | 28c5a79425fa12f9466e27385404f429f76f7524 (patch) | |
| tree | 40301029469de5e8e114cc8527c4ca98069c2df2 /src/main/game/sol_rules.h | |
| parent | Canfield rules schema and update default rules (diff) | |
| download | metasol-28c5a79425fa12f9466e27385404f429f76f7524.tar.gz metasol-28c5a79425fa12f9466e27385404f429f76f7524.zip | |
Update rules so new schema works w/ existing games
Diffstat (limited to 'src/main/game/sol_rules.h')
| -rw-r--r-- | src/main/game/sol_rules.h | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/src/main/game/sol_rules.h b/src/main/game/sol_rules.h index 0673771..25dcbe4 100644 --- a/src/main/game/sol_rules.h +++ b/src/main/game/sol_rules.h @@ -44,17 +44,27 @@ 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 two_decks; uint8_t max_rank; bool hole; bool foundations_present; - bool foundations_init_card; + foundations_init_type foundations_init_cards; bool foundations_removable; bool foundations_only_comp_piles; bool diagonal_deal; |
