implementation.gridpuzzle
Class GridState
java.lang.Object
implementation.gridpuzzle.GridState
public class GridState
- extends java.lang.Object
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
GridState
public GridState(GameGrid current,
java.awt.Point move,
GridState parent)
GridState
public GridState(GameGrid current)
getGrid
public GameGrid getGrid()
getParent
public GridState getParent()
getDepth
public int getDepth()
getMove
public java.awt.Point getMove()
getPath
public java.util.List<java.awt.Point> getPath()
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
equals
public boolean equals(GridState g)
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in class java.lang.Object