about summary refs log tree commit diff stats
path: root/Source/Randomizer.h
diff options
context:
space:
mode:
authorjbzdarkid <jbzdarkid@gmail.com>2018-11-07 08:27:09 -0800
committerjbzdarkid <jbzdarkid@gmail.com>2018-11-07 08:27:09 -0800
commit1cad9871174728c15abbdb71ee5cbe2cf03ccf0c (patch)
tree78c9cd861667e97c65ae89fe9a5e5b9a648efb06 /Source/Randomizer.h
parentcff45c335b23567eb126fefd676fad7c5e88ee02 (diff)
downloadwitness-tutorializer-1cad9871174728c15abbdb71ee5cbe2cf03ccf0c.tar.gz
witness-tutorializer-1cad9871174728c15abbdb71ee5cbe2cf03ccf0c.tar.bz2
witness-tutorializer-1cad9871174728c15abbdb71ee5cbe2cf03ccf0c.zip
Cleanup before I dive further
Diffstat (limited to 'Source/Randomizer.h')
-rw-r--r--Source/Randomizer.h16
1 files changed, 14 insertions, 2 deletions
diff --git a/Source/Randomizer.h b/Source/Randomizer.h index ea05975..c9603ac 100644 --- a/Source/Randomizer.h +++ b/Source/Randomizer.h
@@ -8,7 +8,7 @@ public:
8 8
9 void AdjustSpeed(); 9 void AdjustSpeed();
10 10
11 void ClearOffsets() {_core.ClearOffsets();} 11 void ClearOffsets() {_memory->ClearOffsets();}
12 12
13private: 13private:
14 14
@@ -29,5 +29,17 @@ private:
29 void RandomizeChallenge(); 29 void RandomizeChallenge();
30 void RandomizeAudioLogs(); 30 void RandomizeAudioLogs();
31 31
32 RandomizerCore _core; 32 void Randomize(std::vector<int>& panels, int flags);
33 void RandomizeRange(std::vector<int> &panels, int flags, size_t startIndex, size_t endIndex);
34 void SwapPanels(int panel1, int panel2, int flags);
35 void ReassignTargets(const std::vector<int>& panels, const std::vector<int>& order, std::vector<int> targets = {});
36 void ReassignNames(const std::vector<int>& panels, const std::vector<int>& order);
37
38 short ReadMetadata();
39 void WriteMetadata(short metadata);
40 int GetCurrentFrame();
41
42 std::shared_ptr<Memory> _memory = std::make_shared<Memory>("witness64_d3d11.exe");
43
44 friend class SwapTests_Shipwreck_Test;
33}; 45};