aboutsummaryrefslogtreecommitdiff
path: root/src/main/game/sol_rules.cpp
blob: 55c6757090f16c2a63b91f070f1e67ec9333919f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
//
// Created by thecharlesblake on 1/12/18.
//

#include "sol_rules.h"

typedef sol_rules::build_policy pol;
typedef sol_rules::spaces_policy s_pol;
typedef sol_rules::stock_deal_type sdt;
typedef sol_rules::direction dir;
typedef sol_rules::face_up_policy fu;
typedef sol_rules::built_group_type bgt;
typedef sol_rules::foundations_init_type fit;

// Note that the 'default' sol rules are set up by parsing the default json
// rules description. This initialisation is really just for testing purposes.
sol_rules::sol_rules() :
        tableau_pile_count(0),
        build_pol(pol::ANY_SUIT),
        spaces_pol(s_pol::ANY),
        move_built_group(bgt::NO),
        built_group_pol(pol::ANY_SUIT),
        two_decks(false),
        max_rank(13),
        hole(false),
        foundations_present(false),
        foundations_init_cards(fit::NONE),
        foundations_base(1),
        foundations_only_comp_piles(false),
        diagonal_deal(false),
        cells(0),
        stock_size(0),
        stock_deal_t(sdt::TABLEAU_PILES),
        stock_deal_count(1),
        reserve_size(0),
        reserve_stacked(false),
        face_up(fu::ALL),
        sequence_count(0),
        sequence_direction(dir::LEFT),
        sequence_build_pol(pol::SAME_SUIT),
        accordion_size(0) {
}