Uses of Class
PuzzleState

Uses of PuzzleState in <Unnamed>
 

Methods in <Unnamed> that return PuzzleState
static PuzzleState PuzzleState.generateRandom(short s)
          Generates a random state of the given size.
static PuzzleState PuzzleState.generateSolved(short s)
          Generates a (not the, there are different possibilities) solved state of the given size
 PuzzleState PuzzleModel.getCurrent()
          Returns the current PuzzleState.
 PuzzleState CubesPanel.getCurrentState()
          Returns the current state.
 PuzzleState PuzzleState.getPrevious()
          Returns the previous state.
 

Methods in <Unnamed> with parameters of type PuzzleState
static void PuzzleModel.printState2d(PuzzleState state)
          This prints out the state to the screen by printing the z coordinate of the visible cubes in the XY plane.
static void PuzzleModel.printState2d2(PuzzleState state)
          This prints out the state to the screen by printing the z coordinate of the visible cubes in the XZ plane.
 java.util.LinkedList PuzzleModel.puzzleSolved(PuzzleState solved)
          Called when the puzzle has been solved.
 void PuzzleState.setPrevious(PuzzleState prev)
          Sets the previous field.
 void CubesPanel.setState(PuzzleState state)
          Sets the current state to a given PuzzleState.
 

Constructors in <Unnamed> with parameters of type PuzzleState
PuzzleModel(PuzzleState state)
          Creates a new PuzzleModel with the given PuzzleState, a to-try queue containing it, an empty process, an empty tried hashset, the size of the given state, and a blank result.
PuzzleState(java.util.Collection c, short s, PuzzleState prev)
          Constructor that takes a puzzle size and an existing set of elements.