Class PathPoint
- java.lang.Object
-
- com.apogames.kitchenchef.game.pathfinding.PathPoint
-
public class PathPoint extends java.lang.ObjectThe type Path point.
-
-
Constructor Summary
Constructors Constructor Description PathPoint(float x, float y)Instantiates a new Path point.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description floatgetCompleteCost()Gets complete cost.floatgetCurrentCost()Gets current cost.java.util.List<PathPoint>getNeighbors()Gets neighbors.PathPointgetParent()Gets parent.floatgetX()Gets x.floatgetY()Gets y.booleanisSelected()Is selected boolean.voidreset()Reset.voidsetCompleteCost(float completeCost)Sets complete cost.voidsetCurrentCost(float currentCost)Sets current cost.voidsetParent(PathPoint parent)Sets parent.voidsetSelected(boolean selected)Sets selected.
-
-
-
Method Detail
-
reset
public void reset()
Reset.
-
isSelected
public boolean isSelected()
Is selected boolean.- Returns:
- the boolean
-
setSelected
public void setSelected(boolean selected)
Sets selected.- Parameters:
selected- the selected
-
setCompleteCost
public void setCompleteCost(float completeCost)
Sets complete cost.- Parameters:
completeCost- the complete cost
-
getCompleteCost
public float getCompleteCost()
Gets complete cost.- Returns:
- the complete cost
-
getCurrentCost
public float getCurrentCost()
Gets current cost.- Returns:
- the current cost
-
setCurrentCost
public void setCurrentCost(float currentCost)
Sets current cost.- Parameters:
currentCost- the current cost
-
getX
public float getX()
Gets x.- Returns:
- the x
-
getY
public float getY()
Gets y.- Returns:
- the y
-
getNeighbors
public java.util.List<PathPoint> getNeighbors()
Gets neighbors.- Returns:
- the neighbors
-
getParent
public PathPoint getParent()
Gets parent.- Returns:
- the parent
-
setParent
public void setParent(PathPoint parent)
Sets parent.- Parameters:
parent- the parent
-
-