aboutsummaryrefslogtreecommitdiff
path: root/src/main/game/sol_rules.h
blob: 8ebb73d81f85dba11cbbfe0de228163f73ae9e97 (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
43
44
45
46
47
48
49
//
// Created by thecharlesblake on 10/28/17.
//

#ifndef SOLVITAIRE_SOL_RULES_H
#define SOLVITAIRE_SOL_RULES_H

#include <string>

#include <rapidjson/document.h>

struct sol_rules {
    sol_rules();
    
    // Tableau policies
    enum class build_policy {
        NO_BUILD,
        SAME_SUIT,
        RED_BLACK,
        ANY_SUIT
    };
    enum class spaces_policy {
        NO_BUILD,
        ANY
    };
    enum class stock_deal_type {
        WASTE,
        TABLEAU_PILES
    };

    uint8_t tableau_pile_count;
    build_policy build_pol;
    spaces_policy spaces_pol;
    bool move_built_group;
    bool two_decks;
    uint8_t max_rank;
    bool hole;
    bool foundations;
    bool foundations_init_card;
    bool foundations_removable;
    bool diagonal_deal;
    uint8_t cells;
    uint8_t stock_size;
    stock_deal_type stock_deal_t;
    uint8_t reserve_size;
    bool reserve_stacked;
};

#endif //SOLVITAIRE_SOL_RULES_H