Class Node

java.lang.Object
de.tum.cit.ase.maze.map.path.Node
All Implemented Interfaces:
Comparable<Node>

public class Node extends Object implements Comparable<Node>
Node representing a "point" in a Grid.
  • Constructor Details

    • Node

      public Node(com.badlogic.gdx.math.Vector2 position, boolean isObstacle)
  • Method Details

    • calculateFCost

      public void calculateFCost()
    • getPosition

      public com.badlogic.gdx.math.Vector2 getPosition()
    • setPosition

      public void setPosition(com.badlogic.gdx.math.Vector2 position)
    • isObstacle

      public boolean isObstacle()
    • setObstacle

      public void setObstacle(boolean obstacle)
    • getgCost

      public float getgCost()
    • setgCost

      public void setgCost(float gCost)
    • gethCost

      public float gethCost()
    • sethCost

      public void sethCost(float hCost)
    • getfCost

      public float getfCost()
    • setfCost

      public void setfCost(float fCost)
    • getParent

      public Node getParent()
    • setParent

      public void setParent(Node parent)
    • getNeighbors

      public List<Node> getNeighbors()
    • setNeighbors

      public void setNeighbors(List<Node> neighbors)
    • compareTo

      public int compareTo(Node o)
      Specified by:
      compareTo in interface Comparable<Node>
      Parameters:
      o - the object to be compared.
      Returns: