aboutsummaryrefslogtreecommitdiff
path: root/src/main/game/move.h
diff options
context:
space:
mode:
authorCharlie Blake2018-06-26 10:37:54 +0100
committerCharlie Blake2018-06-26 10:37:54 +0100
commit797400ea32ac1f6588e834fc1bcb42aa67fa6863 (patch)
tree16352c5245f2f94dadf31c3e510eedfc9254fc3d /src/main/game/move.h
parentAdd test to make sure cache encodes face up (diff)
downloadmetasol-797400ea32ac1f6588e834fc1bcb42aa67fa6863.tar.gz
metasol-797400ea32ac1f6588e834fc1bcb42aa67fa6863.zip

Finished klondike correct impl

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