about summary refs log tree commit diff stats
path: root/WitnessRandomizer/WitnessRandomizer.h
diff options
context:
space:
mode:
authorjbzdarkid <jbzdarkid@gmail.com>2018-10-22 19:53:18 -0700
committerjbzdarkid <jbzdarkid@gmail.com>2018-10-22 19:53:18 -0700
commitf255be24d96352c43ec5197cf1bfd6a5a7bb47be (patch)
tree9b0cbdd8a578b0953c4ac1360ae2a50c2e184316 /WitnessRandomizer/WitnessRandomizer.h
parent6560b0b5c6169285c2d65980b12ddb2dddac5f79 (diff)
downloadwitness-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.h15
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
3int SWAP_TARGETS = 0x1;
4int SWAP_PATHWAYS = 0x2;
5int SWAP_STYLE = 0x40;
6int SWAP_COLORS = 0x4;
7int SWAP_TRACED = 0x80;
8
9
10int SWAP_SIZE = 0x8;
11
12
3class WitnessRandomizer { 13class WitnessRandomizer {
4public: 14public:
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
12private: 21private:
13 void SwapPanelData(int panel1, int panel2, int finalOffset, int dataSize); 22 void SwapPanelData(int panel1, int panel2, int finalOffset, int dataSize);