imported and translated java code

starting to implement algorithms
This commit is contained in:
Simon O'Shea
2023-08-08 15:27:37 -04:00
parent f825ec9c27
commit 3ac2b11494
4 changed files with 257 additions and 180 deletions
@@ -6,10 +6,16 @@ public class AStar : MonoBehaviour
{
LogicGrid world;
List<int[][]> obstacles;
List<int[][]> samples;
int heuristic; // 0 = h0 |
public void setWorld(LogicGrid world)
public AStar(LogicGrid world, int heuristic)
{
this.world = world;
this.obstacles = world.obstacles;
this.samples = world.samples;
this.heuristic = heuristic;
}
void Start()