Class PathPoint
- java.lang.Object
-
- com.apogames.kitchenchef.game.pathfinding.PathPoint
-
public class PathPoint extends java.lang.Object
The 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 float
getCompleteCost()
Gets complete cost.float
getCurrentCost()
Gets current cost.java.util.List<PathPoint>
getNeighbors()
Gets neighbors.PathPoint
getParent()
Gets parent.float
getX()
Gets x.float
getY()
Gets y.boolean
isSelected()
Is selected boolean.void
reset()
Reset.void
setCompleteCost(float completeCost)
Sets complete cost.void
setCurrentCost(float currentCost)
Sets current cost.void
setParent(PathPoint parent)
Sets parent.void
setSelected(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
-
-