From 3a03f478e407f35bfafd192c22f82bc8c6e25a38 Mon Sep 17 00:00:00 2001 From: jbzdarkid Date: Wed, 6 Nov 2019 09:19:21 -0800 Subject: And... it works? --- Source/Randomizer.h | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'Source/Randomizer.h') 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 @@ class Randomizer { public: + Randomizer(const std::shared_ptr& memory); void Randomize(); - bool GameIsRandomized(); + void RandomizeChallenge(); void AdjustSpeed(); void RandomizeLasers(); void PreventSnipes(); - void ClearOffsets() {_memory->ClearOffsets();} - enum SWAP { NONE = 0, TARGETS = 1, @@ -36,7 +35,6 @@ private: void RandomizeJungle(); void RandomizeSwamp(); void RandomizeMountain(); - void RandomizeChallenge(); void RandomizeAudioLogs(); void Randomize(std::vector& panels, int flags); @@ -45,7 +43,7 @@ private: void ReassignTargets(const std::vector& panels, const std::vector& order, std::vector targets = {}); void ReassignNames(const std::vector& panels, const std::vector& order); - std::shared_ptr _memory = std::make_shared(L"witness64_d3d11.exe"); + std::shared_ptr _memory; friend class SwapTests_Shipwreck_Test; }; -- cgit 1.4.1