aboutsummaryrefslogtreecommitdiff
path: root/src/main/game/move.h
diff options
context:
space:
mode:
authorCharlie Blake2018-06-26 12:02:44 +0100
committerGitHub2018-06-26 12:02:44 +0100
commitb3f79030aef87d9bd0a543bac603f1c2cb697718 (patch)
tree9a67e59d1752dcd0e6c68be71b995abaf63781ed /src/main/game/move.h
parentMerge pull request #70 from thecharlesblake/ipg (diff)
parentFinished klondike correct impl (diff)
downloadmetasol-b3f79030aef87d9bd0a543bac603f1c2cb697718.tar.gz
metasol-b3f79030aef87d9bd0a543bac603f1c2cb697718.zip

Merge pull request #71 from thecharlesblake/correct-klondike

Correct klondike

Diffstat (limited to 'src/main/game/move.h')
-rw-r--r--src/main/game/move.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/main/game/move.h b/src/main/game/move.h
index 1e3a9d1..8651d1e 100644
--- a/src/main/game/move.h
+++ b/src/main/game/move.h
@@ -10,13 +10,16 @@
struct move {
enum class mtype : uint8_t {regular, dominance, built_group, stock_to_waste, stock_to_tableau, redeal, null};
- explicit move(mtype, pile::ref = 255 , pile::ref = 255, pile::size_type = 1);
+ explicit move(mtype, pile::ref = 255 , pile::ref = 255, pile::size_type = 1, bool reveal_move_ = false);
friend bool operator==(const move&, const move&);
+ void make_reveal_move();
+
mtype type;
pile::ref from;
pile::ref to;
pile::size_type count;
+ bool reveal_move;
};
#endif //SOLVITAIRE_MOVE_H