diff options
author | jbzdarkid <jbzdarkid@gmail.com> | 2018-10-22 19:53:18 -0700 |
---|---|---|
committer | jbzdarkid <jbzdarkid@gmail.com> | 2018-10-22 19:53:18 -0700 |
commit | f255be24d96352c43ec5197cf1bfd6a5a7bb47be (patch) | |
tree | 9b0cbdd8a578b0953c4ac1360ae2a50c2e184316 /WitnessRandomizer/WitnessRandomizer.h | |
parent | 6560b0b5c6169285c2d65980b12ddb2dddac5f79 (diff) | |
download | witness-tutorializer-f255be24d96352c43ec5197cf1bfd6a5a7bb47be.tar.gz witness-tutorializer-f255be24d96352c43ec5197cf1bfd6a5a7bb47be.tar.bz2 witness-tutorializer-f255be24d96352c43ec5197cf1bfd6a5a7bb47be.zip |
Updates to the list of offsets -- being more explicit now
Diffstat (limited to 'WitnessRandomizer/WitnessRandomizer.h')
-rw-r--r-- | WitnessRandomizer/WitnessRandomizer.h | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/WitnessRandomizer/WitnessRandomizer.h b/WitnessRandomizer/WitnessRandomizer.h index 4d4684e..26affa3 100644 --- a/WitnessRandomizer/WitnessRandomizer.h +++ b/WitnessRandomizer/WitnessRandomizer.h | |||
@@ -1,13 +1,22 @@ | |||
1 | #pragma once | 1 | #pragma once |
2 | 2 | ||
3 | int SWAP_TARGETS = 0x1; | ||
4 | int SWAP_PATHWAYS = 0x2; | ||
5 | int SWAP_STYLE = 0x40; | ||
6 | int SWAP_COLORS = 0x4; | ||
7 | int SWAP_TRACED = 0x80; | ||
8 | |||
9 | |||
10 | int SWAP_SIZE = 0x8; | ||
11 | |||
12 | |||
3 | class WitnessRandomizer { | 13 | class WitnessRandomizer { |
4 | public: | 14 | public: |
5 | int RANDOMIZE_TARGETS = 0x1; | 15 | |
6 | int RANDOMIZE_DATA = 0x2; | ||
7 | |||
8 | WitnessRandomizer() = default; | 16 | WitnessRandomizer() = default; |
9 | 17 | ||
10 | void Randomize(std::vector<int> panels, int flags); | 18 | void Randomize(std::vector<int> panels, int flags); |
19 | void SwapPanels(int panel1, int panel2, int flags); | ||
11 | 20 | ||
12 | private: | 21 | private: |
13 | void SwapPanelData(int panel1, int panel2, int finalOffset, int dataSize); | 22 | void SwapPanelData(int panel1, int panel2, int finalOffset, int dataSize); |