diff options
| author | Charlie Blake | 2018-07-06 17:27:39 +0100 |
|---|---|---|
| committer | GitHub | 2018-07-06 17:27:39 +0100 |
| commit | 0e685d6e4a343daab945f5fb7d0cf250c077b6ff (patch) | |
| tree | 634eede8d39d3e313c1206cb2b9a6f6205570f8c /src/main/game/move.h | |
| parent | Merge pull request #74 from thecharlesblake/sol-streamliner-variants (diff) | |
| parent | Refactor k-plus impl to simplify and fix deal1 bug (diff) | |
| download | metasol-0e685d6e4a343daab945f5fb7d0cf250c077b6ff.tar.gz metasol-0e685d6e4a343daab945f5fb7d0cf250c077b6ff.zip | |
Merge pull request #75 from thecharlesblake/refactor-rules-json
Refactor rules json
Diffstat (limited to 'src/main/game/move.h')
| -rw-r--r-- | src/main/game/move.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/main/game/move.h b/src/main/game/move.h index 5e6892f..27ba279 100644 --- a/src/main/game/move.h +++ b/src/main/game/move.h @@ -10,7 +10,7 @@ struct move { enum class mtype : uint8_t {regular, dominance, built_group, stock_k_plus, stock_to_all_tableau, null}; - explicit move(mtype, pile::ref = 255 , pile::ref = 255, pile::size_type = 1, bool reveal_move_ = false); + explicit move(mtype, pile::ref = 255 , pile::ref = 255, int8_t = 1, bool reveal_move_ = false, bool flip_waste_ = false); friend bool operator==(const move&, const move&); void make_reveal_move(); @@ -18,8 +18,11 @@ struct move { mtype type; pile::ref from; pile::ref to; - pile::size_type count; + // For built piles the size of the pile, or for stock k-plus moves, + // the number of cards to be moved from the stock to the waste before the waste card is played on the foundations + int8_t count; bool reveal_move; + bool flip_waste; }; #endif //SOLVITAIRE_MOVE_H |
