diff options
author | jbzdarkid <jbzdarkid@gmail.com> | 2018-10-25 21:57:21 -0700 |
---|---|---|
committer | jbzdarkid <jbzdarkid@gmail.com> | 2018-10-25 21:57:21 -0700 |
commit | 4edd6ab796f26563368e5b8487df1f1f9bb0684c (patch) | |
tree | 2a39c9dc3935cfe97898bfa1e0d628802b9deb24 /WitnessRandomizer/WitnessRandomizer.h | |
parent | a96cea16828973b92c465fb84de2554779f07101 (diff) | |
download | witness-tutorializer-4edd6ab796f26563368e5b8487df1f1f9bb0684c.tar.gz witness-tutorializer-4edd6ab796f26563368e5b8487df1f1f9bb0684c.tar.bz2 witness-tutorializer-4edd6ab796f26563368e5b8487df1f1f9bb0684c.zip |
Some sequence randomization, and swapping some control panels.
Diffstat (limited to 'WitnessRandomizer/WitnessRandomizer.h')
-rw-r--r-- | WitnessRandomizer/WitnessRandomizer.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/WitnessRandomizer/WitnessRandomizer.h b/WitnessRandomizer/WitnessRandomizer.h index 7618e91..f9a66c4 100644 --- a/WitnessRandomizer/WitnessRandomizer.h +++ b/WitnessRandomizer/WitnessRandomizer.h | |||
@@ -1,5 +1,6 @@ | |||
1 | #pragma once | 1 | #pragma once |
2 | 2 | ||
3 | int SWAP_NONE = 0x0; | ||
3 | int SWAP_TARGETS = 0x1; | 4 | int SWAP_TARGETS = 0x1; |
4 | int SWAP_LINES = 0x2; | 5 | int SWAP_LINES = 0x2; |
5 | int SWAP_STYLE = 0x4; | 6 | int SWAP_STYLE = 0x4; |
@@ -10,10 +11,16 @@ public: | |||
10 | 11 | ||
11 | WitnessRandomizer(); | 12 | WitnessRandomizer(); |
12 | 13 | ||
13 | void Randomize(std::vector<int> panels, int flags); | 14 | void Randomize(std::vector<int> &panels, int flags); |
15 | void RandomizeRange(std::vector<int> &panels, int flags, size_t startIndex, size_t endIndex); | ||
14 | void SwapPanels(int panel1, int panel2, int flags); | 16 | void SwapPanels(int panel1, int panel2, int flags); |
17 | void ReassignTargets(const std::vector<int>& panels, const std::vector<int>& order); | ||
18 | |||
15 | 19 | ||
16 | //private: | 20 | //private: |
21 | void TurnOn(int panel); | ||
22 | void TurnOff(int panel); | ||
23 | |||
17 | void SwapPanelData(int panel1, int panel2, int finalOffset, int dataSize); | 24 | void SwapPanelData(int panel1, int panel2, int finalOffset, int dataSize); |
18 | 25 | ||
19 | Memory _memory; | 26 | Memory _memory; |