Class FieldLoader.FieldData

java.lang.Object
me.nabdev.pathfinding.utilities.FieldLoader.FieldData
Enclosing class:
FieldLoader

public static class FieldLoader.FieldData extends Object
Temporary data structure for holding the field data
  • Field Details

    • vertices

      public ArrayList<Double[]> vertices
      The vertices of the field. Each vertex is an array of two doubles, the x and y coordinates.
    • obstacles

      The obstacles of the field. Each obstacle is an array of edges and an id.
    • fieldX

      public double fieldX
      The field's x dimension (meters)
    • fieldY

      public double fieldY
      The field's y dimension (meters)
  • Constructor Details

    • FieldData

      public FieldData(ArrayList<Double[]> vertices, ArrayList<FieldLoader.ObstacleData> obstacles, double fieldX, double fieldY)
      Creates a new FieldData
      Parameters:
      vertices - The vertices of the field
      obstacles - The obstacles of the field
      fieldX - The field's x dimension (meters)
      fieldY - The field's y dimension (meters)