summaryrefslogtreecommitdiff
path: root/Pathfinding Visualizer/Assets/Scripts/LogicGrid.cs
diff options
context:
space:
mode:
authorSimon O'Shea <osheas1@wit.edu>2023-08-08 16:29:52 -0400
committerSimon O'Shea <osheas1@wit.edu>2023-08-08 16:29:52 -0400
commit2dcb6ea96d73b29ddd5d6fd302330a004348c47d (patch)
tree1f70f088252202ccafae09ea425d518dc989d21a /Pathfinding Visualizer/Assets/Scripts/LogicGrid.cs
parent239f7ed4c592fc90ad8d6afc9e342a0e8f1694cf (diff)
things are broken
Diffstat (limited to 'Pathfinding Visualizer/Assets/Scripts/LogicGrid.cs')
-rw-r--r--Pathfinding Visualizer/Assets/Scripts/LogicGrid.cs50
1 files changed, 0 insertions, 50 deletions
diff --git a/Pathfinding Visualizer/Assets/Scripts/LogicGrid.cs b/Pathfinding Visualizer/Assets/Scripts/LogicGrid.cs
index c87514e..212eb91 100644
--- a/Pathfinding Visualizer/Assets/Scripts/LogicGrid.cs
+++ b/Pathfinding Visualizer/Assets/Scripts/LogicGrid.cs
@@ -18,12 +18,6 @@ public class LogicGrid
// Debug Grid Array used for updating the text-objects
private TextMesh[,] debugTextArray;
-
- // Coordinates for pathfinding
- public int[] agent;
- public List<int[][]> obstacles;
- public List<int[][]> samples;
-
public event EventHandler<OnGridValueChangedEventArgs> OnGridValueChanged;
public class OnGridValueChangedEventArgs : EventArgs
{
@@ -103,46 +97,6 @@ public class LogicGrid
x = x,
y = y
});
-
- // If deleting a cell's value, remove coord from set
- if (value == 0)
- {
-
- // make behavior to check for -1 values in coords
- if (agent[0].Equals(x) && agent[1].Equals(y))
- {
- agent[0] = -1;
- agent[1] = -2;
- }
-
- }
-
- // Add coordinate to obstacle array
- if (value == 1)
- {
- int[][] coord = new int[2][];
-
- coord[0][0] = x;
- coord[1][0] = y;
-
- obstacles.Add(coord);
- }
- // Add coordinate to sample array
- if (value == 2)
- {
- int[][] coord = new int[2][];
-
- coord[0][0] = x;
- coord[1][0] = y;
-
- samples.Add(coord);
- }
- // Add coordinate to obstacle array
- if (value == 3)
- {
- agent[0] = x;
- agent[1] = y;
- }
}
}
@@ -183,10 +137,6 @@ public class LogicGrid
{
gridArray = new int[width, height];
- agent = new int[2];
- obstacles = new List<int[][]>();
- samples = new List<int[][]>();
-
if (OnGridValueChanged != null)
OnGridValueChanged(this, new OnGridValueChangedEventArgs
{