diff options
author | jbzdarkid <jbzdarkid@gmail.com> | 2019-11-18 09:16:16 -0800 |
---|---|---|
committer | jbzdarkid <jbzdarkid@gmail.com> | 2019-11-18 09:16:16 -0800 |
commit | bff40e55c9c55fbc8439bb225d1937b2d805e629 (patch) | |
tree | e3aa7a2912c4208247139a9c2b806035af876a33 /Source/Randomizer2.h | |
parent | 695d0e12950b9df248ea7b84f8434e32acc84f11 (diff) | |
download | witness-tutorializer-bff40e55c9c55fbc8439bb225d1937b2d805e629.tar.gz witness-tutorializer-bff40e55c9c55fbc8439bb225d1937b2d805e629.tar.bz2 witness-tutorializer-bff40e55c9c55fbc8439bb225d1937b2d805e629.zip |
Cleanup & progress on tutorial
Diffstat (limited to 'Source/Randomizer2.h')
-rw-r--r-- | Source/Randomizer2.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/Randomizer2.h b/Source/Randomizer2.h index 359e357..6e79694 100644 --- a/Source/Randomizer2.h +++ b/Source/Randomizer2.h | |||
@@ -1,16 +1,20 @@ | |||
1 | #pragma once | 1 | #pragma once |
2 | #include <memory> | 2 | #include <memory> |
3 | #include "PuzzleSerializer.h" | ||
3 | 4 | ||
4 | class Memory; | 5 | class Memory; |
5 | class Randomizer2 { | 6 | class Randomizer2 { |
6 | public: | 7 | public: |
7 | Randomizer2(const std::shared_ptr<Memory>& memory); | 8 | Randomizer2(const std::shared_ptr<Memory>& memory); |
8 | void Randomize(); | 9 | void Randomize(); |
10 | void RandomizeTutorial(); | ||
9 | void RandomizeKeep(); | 11 | void RandomizeKeep(); |
10 | 12 | ||
11 | private: | 13 | private: |
14 | Puzzle GetUniqueSolution(Puzzle& p); | ||
12 | void SetGate(int panel, int X, int Y); | 15 | void SetGate(int panel, int X, int Y); |
13 | void SetPos(int panel, float x, float y, float z); | 16 | void SetPos(int panel, float x, float y, float z); |
14 | 17 | ||
15 | std::shared_ptr<Memory> _memory; | 18 | std::shared_ptr<Memory> _memory; |
19 | PuzzleSerializer _serializer; | ||
16 | }; | 20 | }; |