Package me.nabdev.pathfinding.utilities
Class FieldLoader.FieldData
java.lang.Object
me.nabdev.pathfinding.utilities.FieldLoader.FieldData
- Enclosing class:
- FieldLoader
Temporary data structure for holding the field data
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionFieldData
(ArrayList<Double[]> vertices, ArrayList<FieldLoader.ObstacleData> obstacles, double fieldX, double fieldY) Creates a new FieldData -
Method Summary
-
Field Details
-
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 fieldXThe field's x dimension (meters) -
fieldY
public double fieldYThe 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 fieldobstacles
- The obstacles of the fieldfieldX
- The field's x dimension (meters)fieldY
- The field's y dimension (meters)
-