Class FieldLoader.ObstacleData

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

public static class FieldLoader.ObstacleData extends Object
Temporary data structure for holding obstacle data
  • Field Details

    • edges

      public ArrayList<Integer[]> edges
      The edges of the obstacle. Each edge is an array of two integers, the indices of the vertices in the field data.
    • id

      public String id
      The id of the obstacle
    • modifiers

      public ModifierCollection modifiers
      The modifiers on this obstacle
  • Constructor Details

    • ObstacleData

      public ObstacleData(ArrayList<Integer[]> edges, String id, ModifierCollection modifiers)
      Creates a new ObstacleData
      Parameters:
      edges - The edges of the obstacle
      id - The id of the obstacle
      modifiers - The modifiers on this obstacle