summary refs log tree commit diff stats
path: root/Source/Randomizer.h
diff options
context:
space:
mode:
authorjbzdarkid <jbzdarkid@gmail.com>2018-11-07 08:41:20 -0800
committerjbzdarkid <jbzdarkid@gmail.com>2018-11-07 08:41:20 -0800
commite762e48d6fbab7bd5137c369fa49df25ccd5369d (patch)
treeef457564aff53d1880531c3f24d7da301988b2d8 /Source/Randomizer.h
parent1cad9871174728c15abbdb71ee5cbe2cf03ccf0c (diff)
downloadwitness-tutorializer-e762e48d6fbab7bd5137c369fa49df25ccd5369d.tar.gz
witness-tutorializer-e762e48d6fbab7bd5137c369fa49df25ccd5369d.tar.bz2
witness-tutorializer-e762e48d6fbab7bd5137c369fa49df25ccd5369d.zip
Warnings clean because fml
Diffstat (limited to 'Source/Randomizer.h')
-rw-r--r--Source/Randomizer.h144
1 files changed, 143 insertions, 1 deletions
diff --git a/Source/Randomizer.h b/Source/Randomizer.h index c9603ac..fa7bc4c 100644 --- a/Source/Randomizer.h +++ b/Source/Randomizer.h
@@ -1,5 +1,6 @@
1#pragma once 1#pragma once
2#include "RandomizerCore.h" 2#include "Memory.h"
3#include <memory>
3 4
4class Randomizer { 5class Randomizer {
5public: 6public:
@@ -10,6 +11,13 @@ public:
10 11
11 void ClearOffsets() {_memory->ClearOffsets();} 12 void ClearOffsets() {_memory->ClearOffsets();}
12 13
14 enum SWAP {
15 NONE = 0,
16 TARGETS = 1,
17 LINES = 2,
18 AUDIO_NAMES = 4,
19 };
20
13private: 21private:
14 22
15 int _lastRandomizedFrame = 1 << 30; 23 int _lastRandomizedFrame = 1 << 30;
@@ -43,3 +51,137 @@ private:
43 51
44 friend class SwapTests_Shipwreck_Test; 52 friend class SwapTests_Shipwreck_Test;
45}; 53};
54
55#if GLOBALS == 0x5B28C0
56#define PATH_COLOR 0xC8
57#define REFLECTION_PATH_COLOR 0xD8
58#define DOT_COLOR 0xF8
59#define ACTIVE_COLOR 0x108
60#define BACKGROUND_REGION_COLOR 0x118
61#define SUCCESS_COLOR_A 0x128
62#define SUCCESS_COLOR_B 0x138
63#define STROBE_COLOR_A 0x148
64#define STROBE_COLOR_B 0x158
65#define ERROR_COLOR 0x168
66#define PATTERN_POINT_COLOR 0x188
67#define PATTERN_POINT_COLOR_A 0x198
68#define PATTERN_POINT_COLOR_B 0x1A8
69#define SYMBOL_A 0x1B8
70#define SYMBOL_B 0x1C8
71#define SYMBOL_C 0x1D8
72#define SYMBOL_D 0x1E8
73#define SYMBOL_E 0x1F8
74#define PUSH_SYMBOL_COLORS 0x208
75#define OUTER_BACKGROUND 0x20C
76#define OUTER_BACKGROUND_MODE 0x21C
77#define TRACED_EDGES 0x230
78#define AUDIO_PREFIX 0x278
79#define POWER 0x2A8
80#define TARGET 0x2BC
81#define IS_CYLINDER 0x2FC
82#define CYLINDER_Z0 0x300
83#define CYLINDER_Z1 0x304
84#define CYLINDER_RADIUS 0x308
85#define CURSOR_SPEED_SCALE 0x358
86#define NEEDS_REDRAW 0x384
87#define SPECULAR_ADD 0x398
88#define SPECULAR_POWER 0x39C
89#define PATH_WIDTH_SCALE 0x3A4
90#define STARTPOINT_SCALE 0x3A8
91#define NUM_DOTS 0x3B8
92#define NUM_CONNECTIONS 0x3BC
93#define MAX_BROADCAST_DISTANCE 0x3C0
94#define DOT_POSITIONS 0x3C8
95#define DOT_FLAGS 0x3D0
96#define DOT_CONNECTION_A 0x3D8
97#define DOT_CONNECTION_B 0x3E0
98#define DECORATIONS 0x420
99#define DECORATION_FLAGS 0x428
100#define DECORATION_COLORS 0x430
101#define NUM_DECORATIONS 0x438
102#define REFLECTION_DATA 0x440
103#define GRID_SIZE_X 0x448
104#define GRID_SIZE_Y 0x44C
105#define STYLE_FLAGS 0x450
106#define SEQUENCE_LEN 0x45C
107#define SEQUENCE 0x460
108#define DOT_SEQUENCE_LEN 0x468
109#define DOT_SEQUENCE 0x470
110#define DOT_SEQUENCE_LEN_REFLECTION 0x478
111#define DOT_SEQUENCE_REFLECTION 0x480
112#define NUM_COLORED_REGIONS 0x4A0
113#define COLORED_REGIONS 0x4A8
114#define PANEL_TARGET 0x4B0
115#define SPECULAR_TEXTURE 0x4D8
116#define CABLE_TARGET_2 0xD8
117#define AUDIO_LOG_NAME 0xC8
118#define OPEN_RATE 0xE8
119#define METADATA 0xF2 // sizeof(short)
120#define SCRIPT_FRAMES 0x5BE3B0
121#elif GLOBALS == 0x62A080
122#define PATH_COLOR 0xC0
123#define REFLECTION_PATH_COLOR 0xD0
124#define DOT_COLOR 0xF0
125#define ACTIVE_COLOR 0x100
126#define BACKGROUND_REGION_COLOR 0x110
127#define SUCCESS_COLOR_A 0x120
128#define SUCCESS_COLOR_B 0x130
129#define STROBE_COLOR_A 0x140
130#define STROBE_COLOR_B 0x150
131#define ERROR_COLOR 0x160
132#define PATTERN_POINT_COLOR 0x180
133#define PATTERN_POINT_COLOR_A 0x190
134#define PATTERN_POINT_COLOR_B 0x1A0
135#define SYMBOL_A 0x1B0
136#define SYMBOL_B 0x1C0
137#define SYMBOL_C 0x1D0
138#define SYMBOL_D 0x1E0
139#define SYMBOL_E 0x1F0
140#define PUSH_SYMBOL_COLORS 0x200
141#define OUTER_BACKGROUND 0x204
142#define OUTER_BACKGROUND_MODE 0x214
143#define TRACED_EDGES 0x228
144#define AUDIO_PREFIX 0x270
145#define POWER 0x2A0
146#define TARGET 0x2B4
147#define IS_CYLINDER 0x2F4
148#define CYLINDER_Z0 0x2F8
149#define CYLINDER_Z1 0x2FC
150#define CYLINDER_RADIUS 0x300
151#define CURSOR_SPEED_SCALE 0x350
152#define NEEDS_REDRAW 0x37C
153#define SPECULAR_ADD 0x38C
154#define SPECULAR_POWER 0x390
155#define PATH_WIDTH_SCALE 0x39C
156#define STARTPOINT_SCALE 0x3A0
157#define NUM_DOTS 0x3B4
158#define NUM_CONNECTIONS 0x3B8
159#define MAX_BROADCAST_DISTANCE 0x3BC
160#define DOT_POSITIONS 0x3C0
161#define DOT_FLAGS 0x3C8
162#define DOT_CONNECTION_A 0x3D0
163#define DOT_CONNECTION_B 0x3D8
164#define DECORATIONS 0x418
165#define DECORATION_FLAGS 0x420
166#define DECORATION_COLORS 0x428
167#define NUM_DECORATIONS 0x430
168#define REFLECTION_DATA 0x438
169#define GRID_SIZE_X 0x440
170#define GRID_SIZE_Y 0x444
171#define STYLE_FLAGS 0x448
172#define SEQUENCE_LEN 0x454
173#define SEQUENCE 0x458
174#define DOT_SEQUENCE_LEN 0x460
175#define DOT_SEQUENCE 0x468
176#define DOT_SEQUENCE_LEN_REFLECTION 0x470
177#define DOT_SEQUENCE_REFLECTION 0x478
178#define NUM_COLORED_REGIONS 0x498
179#define COLORED_REGIONS 0x4A0
180#define PANEL_TARGET 0x4A8
181#define SPECULAR_TEXTURE 0x4D0
182#define CABLE_TARGET_2 0xD0
183#define AUDIO_LOG_NAME 0x0
184#define OPEN_RATE 0xE0
185#define METADATA 0x13A // sizeof(short)
186#define SCRIPT_FRAMES 0x63651C
187#endif \ No newline at end of file