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