diff options
author | jbzdarkid <jbzdarkid@gmail.com> | 2019-11-06 09:19:21 -0800 |
---|---|---|
committer | jbzdarkid <jbzdarkid@gmail.com> | 2019-11-06 09:19:21 -0800 |
commit | 3a03f478e407f35bfafd192c22f82bc8c6e25a38 (patch) | |
tree | 0af1c7ec125b098d5cf3c0e19ccf03b511f6d5b9 /Source/Randomizer.h | |
parent | 66b2bc177853d33f4559eb240fbbca354b173fa2 (diff) | |
download | witness-tutorializer-3a03f478e407f35bfafd192c22f82bc8c6e25a38.tar.gz witness-tutorializer-3a03f478e407f35bfafd192c22f82bc8c6e25a38.tar.bz2 witness-tutorializer-3a03f478e407f35bfafd192c22f82bc8c6e25a38.zip |
And... it works?
Diffstat (limited to 'Source/Randomizer.h')
-rw-r--r-- | Source/Randomizer.h | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/Source/Randomizer.h b/Source/Randomizer.h index 020851b..d9ea700 100644 --- a/Source/Randomizer.h +++ b/Source/Randomizer.h | |||
@@ -4,15 +4,14 @@ | |||
4 | 4 | ||
5 | class Randomizer { | 5 | class Randomizer { |
6 | public: | 6 | public: |
7 | Randomizer(const std::shared_ptr<Memory>& memory); | ||
7 | void Randomize(); | 8 | void Randomize(); |
8 | bool GameIsRandomized(); | 9 | void RandomizeChallenge(); |
9 | 10 | ||
10 | void AdjustSpeed(); | 11 | void AdjustSpeed(); |
11 | void RandomizeLasers(); | 12 | void RandomizeLasers(); |
12 | void PreventSnipes(); | 13 | void PreventSnipes(); |
13 | 14 | ||
14 | void ClearOffsets() {_memory->ClearOffsets();} | ||
15 | |||
16 | enum SWAP { | 15 | enum SWAP { |
17 | NONE = 0, | 16 | NONE = 0, |
18 | TARGETS = 1, | 17 | TARGETS = 1, |
@@ -36,7 +35,6 @@ private: | |||
36 | void RandomizeJungle(); | 35 | void RandomizeJungle(); |
37 | void RandomizeSwamp(); | 36 | void RandomizeSwamp(); |
38 | void RandomizeMountain(); | 37 | void RandomizeMountain(); |
39 | void RandomizeChallenge(); | ||
40 | void RandomizeAudioLogs(); | 38 | void RandomizeAudioLogs(); |
41 | 39 | ||
42 | void Randomize(std::vector<int>& panels, int flags); | 40 | void Randomize(std::vector<int>& panels, int flags); |
@@ -45,7 +43,7 @@ private: | |||
45 | void ReassignTargets(const std::vector<int>& panels, const std::vector<int>& order, std::vector<int> targets = {}); | 43 | void ReassignTargets(const std::vector<int>& panels, const std::vector<int>& order, std::vector<int> targets = {}); |
46 | void ReassignNames(const std::vector<int>& panels, const std::vector<int>& order); | 44 | void ReassignNames(const std::vector<int>& panels, const std::vector<int>& order); |
47 | 45 | ||
48 | std::shared_ptr<Memory> _memory = std::make_shared<Memory>(L"witness64_d3d11.exe"); | 46 | std::shared_ptr<Memory> _memory; |
49 | 47 | ||
50 | friend class SwapTests_Shipwreck_Test; | 48 | friend class SwapTests_Shipwreck_Test; |
51 | }; | 49 | }; |