diff options
author | jbzdarkid <jbzdarkid@gmail.com> | 2019-11-24 12:28:53 -0800 |
---|---|---|
committer | jbzdarkid <jbzdarkid@gmail.com> | 2019-11-24 12:28:53 -0800 |
commit | 92084d06a5c87338cc988b5bc5868e617213e6b9 (patch) | |
tree | 314cbf8ee06821b9569a7b279bc39e2bf04abc87 /Source/Randomizer2.h | |
parent | 6059a1d1b99186a28bcd3c60822bc8310724bfd4 (diff) | |
download | witness-tutorializer-92084d06a5c87338cc988b5bc5868e617213e6b9.tar.gz witness-tutorializer-92084d06a5c87338cc988b5bc5868e617213e6b9.tar.bz2 witness-tutorializer-92084d06a5c87338cc988b5bc5868e617213e6b9.zip |
Try/catch, and select seed
Diffstat (limited to 'Source/Randomizer2.h')
-rw-r--r-- | Source/Randomizer2.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/Source/Randomizer2.h b/Source/Randomizer2.h index 47a9ebd..c8c3db5 100644 --- a/Source/Randomizer2.h +++ b/Source/Randomizer2.h | |||
@@ -1,11 +1,10 @@ | |||
1 | #pragma once | 1 | #pragma once |
2 | #include <memory> | ||
3 | #include "PuzzleSerializer.h" | 2 | #include "PuzzleSerializer.h" |
4 | 3 | ||
5 | class Memory; | 4 | class Puzzle; |
6 | class Randomizer2 { | 5 | class Randomizer2 { |
7 | public: | 6 | public: |
8 | Randomizer2(const std::shared_ptr<Memory>& memory); | 7 | Randomizer2(const PuzzleSerializer& serializer); |
9 | void Randomize(); | 8 | void Randomize(); |
10 | void RandomizeTutorial(); | 9 | void RandomizeTutorial(); |
11 | void RandomizeSymmetry(); | 10 | void RandomizeSymmetry(); |
@@ -16,6 +15,5 @@ private: | |||
16 | void SetGate(int panel, int X, int Y); | 15 | void SetGate(int panel, int X, int Y); |
17 | void SetPos(int panel, float x, float y, float z); | 16 | void SetPos(int panel, float x, float y, float z); |
18 | 17 | ||
19 | std::shared_ptr<Memory> _memory; | ||
20 | PuzzleSerializer _serializer; | 18 | PuzzleSerializer _serializer; |
21 | }; | 19 | }; |