about summary refs log tree commit diff stats
path: root/Source/Randomizer.h
diff options
context:
space:
mode:
Diffstat (limited to 'Source/Randomizer.h')
-rw-r--r--Source/Randomizer.h68
1 files changed, 34 insertions, 34 deletions
diff --git a/Source/Randomizer.h b/Source/Randomizer.h index 87f1f59..673468c 100644 --- a/Source/Randomizer.h +++ b/Source/Randomizer.h
@@ -5,45 +5,45 @@
5class Randomizer { 5class Randomizer {
6public: 6public:
7 Randomizer(const std::shared_ptr<Memory>& memory); 7 Randomizer(const std::shared_ptr<Memory>& memory);
8 void Randomize(); 8 void Randomize();
9 void RandomizeChallenge(); 9 void RandomizeChallenge();
10 10
11 void AdjustSpeed(); 11 void AdjustSpeed();
12 void RandomizeLasers(); 12 void RandomizeLasers();
13 void PreventSnipes(); 13 void PreventSnipes();
14 14
15 enum SWAP { 15 enum SWAP {
16 NONE = 0, 16 NONE = 0,
17 TARGETS = 1, 17 TARGETS = 1,
18 LINES = 2, 18 LINES = 2,
19 AUDIO_NAMES = 4, 19 AUDIO_NAMES = 4,
20 COLORS = 8, 20 COLORS = 8,
21 }; 21 };
22 22
23private: 23private:
24 int _lastRandomizedFrame = 1 << 30; 24 int _lastRandomizedFrame = 1 << 30;
25 void RandomizeTutorial(); 25 void RandomizeTutorial();
26 void RandomizeSymmetry(); 26 void RandomizeSymmetry();
27 void RandomizeDesert(); 27 void RandomizeDesert();
28 void RandomizeQuarry(); 28 void RandomizeQuarry();
29 void RandomizeTreehouse(); 29 void RandomizeTreehouse();
30 void RandomizeKeep(); 30 void RandomizeKeep();
31 void RandomizeShadows(); 31 void RandomizeShadows();
32 void RandomizeTown(); 32 void RandomizeTown();
33 void RandomizeMonastery(); 33 void RandomizeMonastery();
34 void RandomizeBunker(); 34 void RandomizeBunker();
35 void RandomizeJungle(); 35 void RandomizeJungle();
36 void RandomizeSwamp(); 36 void RandomizeSwamp();
37 void RandomizeMountain(); 37 void RandomizeMountain();
38 void RandomizeAudioLogs(); 38 void RandomizeAudioLogs();
39 39
40 void Randomize(std::vector<int>& panels, int flags); 40 void Randomize(std::vector<int>& panels, int flags);
41 void RandomizeRange(std::vector<int> &panels, int flags, size_t startIndex, size_t endIndex); 41 void RandomizeRange(std::vector<int> &panels, int flags, size_t startIndex, size_t endIndex);
42 void SwapPanels(int panel1, int panel2, int flags); 42 void SwapPanels(int panel1, int panel2, int flags);
43 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 = {});
44 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);
45 45
46 std::shared_ptr<Memory> _memory; 46 std::shared_ptr<Memory> _memory;
47 47
48 friend class SwapTests_Shipwreck_Test; 48 friend class SwapTests_Shipwreck_Test;
49}; 49};