about summary refs log tree commit diff stats
path: root/Source/Randomizer2.h
diff options
context:
space:
mode:
authorjbzdarkid <jbzdarkid@gmail.com>2019-11-18 09:16:16 -0800
committerjbzdarkid <jbzdarkid@gmail.com>2019-11-18 09:16:16 -0800
commitbff40e55c9c55fbc8439bb225d1937b2d805e629 (patch)
treee3aa7a2912c4208247139a9c2b806035af876a33 /Source/Randomizer2.h
parent695d0e12950b9df248ea7b84f8434e32acc84f11 (diff)
downloadwitness-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.h4
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
4class Memory; 5class Memory;
5class Randomizer2 { 6class Randomizer2 {
6public: 7public:
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
11private: 13private:
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};