Uses of Class
api.MoveRecord
-
Packages that use MoveRecord Package Description hw3 -
-
Uses of MoveRecord in hw3
Methods in hw3 that return MoveRecord Modifier and Type Method Description MoveRecord[]
Pearls. move(Direction dir)
Performs a move along a state sequence in the given direction, updating the score, the move count, and all affected cells in the grid.Methods in hw3 with parameters of type MoveRecord Modifier and Type Method Description void
PearlUtil. collectPearls(State[] states, MoveRecord[] records, int start, int end)
Replaces all PEARL states with EMPTY state between indices start and end, inclusive.void
PearlUtil. moveBlocks(State[] states, MoveRecord[] records)
Updates the given state sequence to be consistent with shifting all movable blocks as far to the right as possible, replacing their previous positions with EMPTY.int
PearlUtil. movePlayer(State[] states, MoveRecord[] records, Direction dir)
Updates the given state sequence to be consistent with shifting the "player" to the right as far as possible.
-