Class Node


public class Node extends Object
Store information about cells cost for A* pathfinding algorithm.
  • Field Details

    • position

      public Vector2D position
    • parentPosition

      public Vector2D parentPosition
    • gCost

      public int gCost
    • hCost

      public int hCost
  • Constructor Details

    • Node

      public Node(Vector2D pos, Vector2D parentPos, int g, int h)
      Basic constructor to set field.