2023-11-05 10:45:35 -06:00
|
|
|
package engine.mobileAI.utilities;
|
2023-11-14 20:54:29 -06:00
|
|
|
import engine.math.Vector2f;
|
|
|
|
|
import engine.objects.Building;
|
2023-11-05 10:45:35 -06:00
|
|
|
import engine.objects.Regions;
|
2023-11-14 20:54:29 -06:00
|
|
|
|
2023-11-05 10:45:35 -06:00
|
|
|
import java.util.ArrayList;
|
|
|
|
|
|
|
|
|
|
public class PathingUtilities {
|
2023-11-14 20:54:29 -06:00
|
|
|
public static class Node {
|
|
|
|
|
public Vector2f location;
|
|
|
|
|
public ArrayList<Node> neighbors;
|
|
|
|
|
public Regions region;
|
|
|
|
|
public Building parentBuilding;
|
|
|
|
|
|
|
|
|
|
public Node(Vector2f loc, Regions reg, Building parent){
|
|
|
|
|
this.location = loc;
|
|
|
|
|
this.region = reg;
|
|
|
|
|
this.parentBuilding = parent;
|
2023-11-14 21:21:49 -06:00
|
|
|
this.neighbors = new ArrayList<>();
|
2023-11-05 10:45:35 -06:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|