about summary refs log tree commit diff stats
path: root/Source
diff options
context:
space:
mode:
authorjbzdarkid <jbzdarkid@gmail.com>2019-11-25 21:13:11 -0800
committerjbzdarkid <jbzdarkid@gmail.com>2019-11-25 21:13:11 -0800
commita0e7ec171d68a17f8bcaeb5d8f4af881c3510280 (patch)
tree8481c89da8d6c57ff7256b40af26e205bcce0493 /Source
parentac83733b590f3c0750bea1de3556ceb24fa0a4b1 (diff)
downloadwitness-tutorializer-a0e7ec171d68a17f8bcaeb5d8f4af881c3510280.tar.gz
witness-tutorializer-a0e7ec171d68a17f8bcaeb5d8f4af881c3510280.tar.bz2
witness-tutorializer-a0e7ec171d68a17f8bcaeb5d8f4af881c3510280.zip
RM duplicate includes
Diffstat (limited to 'Source')
-rw-r--r--Source/ChallengeRandomizer.cpp1
-rw-r--r--Source/Puzzle.cpp1
-rw-r--r--Source/PuzzleSerializer.cpp4
-rw-r--r--Source/PuzzleSerializer.h1
-rw-r--r--Source/Randomizer.cpp1
-rw-r--r--Source/Randomizer2.cpp1
-rw-r--r--Source/Randomizer2Core.cpp1
-rw-r--r--Source/Solver.cpp1
-rw-r--r--Source/Validator.cpp1
-rw-r--r--Source/pch.h1
10 files changed, 1 insertions, 12 deletions
diff --git a/Source/ChallengeRandomizer.cpp b/Source/ChallengeRandomizer.cpp index b497564..976374e 100644 --- a/Source/ChallengeRandomizer.cpp +++ b/Source/ChallengeRandomizer.cpp
@@ -1,6 +1,5 @@
1#include "pch.h" 1#include "pch.h"
2#include "ChallengeRandomizer.h" 2#include "ChallengeRandomizer.h"
3#include "Memory.h"
4 3
5// Modify an opcode to use RNG2 instead of main RNG 4// Modify an opcode to use RNG2 instead of main RNG
6void ChallengeRandomizer::AdjustRng(int offset) { 5void ChallengeRandomizer::AdjustRng(int offset) {
diff --git a/Source/Puzzle.cpp b/Source/Puzzle.cpp index 15352ed..f0664c7 100644 --- a/Source/Puzzle.cpp +++ b/Source/Puzzle.cpp
@@ -1,6 +1,5 @@
1#include "pch.h" 1#include "pch.h"
2#include "Puzzle.h" 2#include "Puzzle.h"
3#include "Memory.h"
4 3
5Cell Puzzle::GetCell(int x, int y) const { 4Cell Puzzle::GetCell(int x, int y) const {
6 x = Mod(x); 5 x = Mod(x);
diff --git a/Source/PuzzleSerializer.cpp b/Source/PuzzleSerializer.cpp index 33f6da6..29bd648 100644 --- a/Source/PuzzleSerializer.cpp +++ b/Source/PuzzleSerializer.cpp
@@ -1,9 +1,5 @@
1#include "pch.h" 1#include "pch.h"
2#include "PuzzleSerializer.h" 2#include "PuzzleSerializer.h"
3#include "Memory.h"
4
5#pragma warning (disable:26451)
6#pragma warning (disable:26812)
7 3
8PuzzleSerializer::PuzzleSerializer(const std::shared_ptr<Memory>& memory) : _memory(memory) {} 4PuzzleSerializer::PuzzleSerializer(const std::shared_ptr<Memory>& memory) : _memory(memory) {}
9 5
diff --git a/Source/PuzzleSerializer.h b/Source/PuzzleSerializer.h index e1ee3e8..7f1a988 100644 --- a/Source/PuzzleSerializer.h +++ b/Source/PuzzleSerializer.h
@@ -1,5 +1,4 @@
1#pragma once 1#pragma once
2#include "Puzzle.h"
3 2
4class PuzzleSerializer { 3class PuzzleSerializer {
5public: 4public:
diff --git a/Source/Randomizer.cpp b/Source/Randomizer.cpp index e70cf44..01d1e2e 100644 --- a/Source/Randomizer.cpp +++ b/Source/Randomizer.cpp
@@ -92,7 +92,6 @@ Things to do for V2:
92 * Random *rotation* of desert laser redirect? 92 * Random *rotation* of desert laser redirect?
93*/ 93*/
94#include "pch.h" 94#include "pch.h"
95#include "Memory.h"
96#include "Randomizer.h" 95#include "Randomizer.h"
97#include "ChallengeRandomizer.h" 96#include "ChallengeRandomizer.h"
98#include "Panels.h" 97#include "Panels.h"
diff --git a/Source/Randomizer2.cpp b/Source/Randomizer2.cpp index 4f0bad0..4968666 100644 --- a/Source/Randomizer2.cpp +++ b/Source/Randomizer2.cpp
@@ -2,7 +2,6 @@
2#include "Randomizer2.h" 2#include "Randomizer2.h"
3#include "PuzzleSerializer.h" 3#include "PuzzleSerializer.h"
4#include "Randomizer2Core.h" 4#include "Randomizer2Core.h"
5#include "Puzzle.h"
6#include "Random.h" 5#include "Random.h"
7#include "Solver.h" 6#include "Solver.h"
8#include "Windows.h" 7#include "Windows.h"
diff --git a/Source/Randomizer2Core.cpp b/Source/Randomizer2Core.cpp index 89294ef..401743f 100644 --- a/Source/Randomizer2Core.cpp +++ b/Source/Randomizer2Core.cpp
@@ -1,6 +1,5 @@
1#include "pch.h" 1#include "pch.h"
2#include "Randomizer2Core.h" 2#include "Randomizer2Core.h"
3#include "Puzzle.h"
4#include "Random.h" 3#include "Random.h"
5 4
6std::vector<Pos> Randomizer2Core::CutEdges(const Puzzle& p, size_t numEdges) { 5std::vector<Pos> Randomizer2Core::CutEdges(const Puzzle& p, size_t numEdges) {
diff --git a/Source/Solver.cpp b/Source/Solver.cpp index e09cba2..ac660a2 100644 --- a/Source/Solver.cpp +++ b/Source/Solver.cpp
@@ -1,6 +1,5 @@
1#include "pch.h" 1#include "pch.h"
2#include "Solver.h" 2#include "Solver.h"
3#include "Puzzle.h"
4#include "Validator.h" 3#include "Validator.h"
5 4
6int Solver::MAX_SOLUTIONS = 10000; 5int Solver::MAX_SOLUTIONS = 10000;
diff --git a/Source/Validator.cpp b/Source/Validator.cpp index cb0ffa8..3001790 100644 --- a/Source/Validator.cpp +++ b/Source/Validator.cpp
@@ -1,6 +1,5 @@
1#include "pch.h" 1#include "pch.h"
2#include "Validator.h" 2#include "Validator.h"
3#include "Puzzle.h"
4 3
5void Validator::Validate(Puzzle& p) { 4void Validator::Validate(Puzzle& p) {
6 // console.log('Validating', puzzle); 5 // console.log('Validating', puzzle);
diff --git a/Source/pch.h b/Source/pch.h index d431d61..9e39f33 100644 --- a/Source/pch.h +++ b/Source/pch.h
@@ -20,6 +20,7 @@
20#include <vector> 20#include <vector>
21 21
22#pragma warning (disable: 26451) // Potential arithmetic overflow 22#pragma warning (disable: 26451) // Potential arithmetic overflow
23#pragma warning (disable: 26812) // Unscoped enum type
23 24
24#include "MemoryException.h" 25#include "MemoryException.h"
25#include "Memory.h" 26#include "Memory.h"