Interface TwoPhaseMoveState<T>
- Type Parameters:
T
- represents the type of the source and the target of the moves
- All Superinterfaces:
Cloneable
,State<TwoPhaseMoveState.TwoPhaseMove<T>>
,State<TwoPhaseMoveState.TwoPhaseMove<T>>
,TwoPhaseMoveState<T>
public interface TwoPhaseMoveState<T>
extends State<TwoPhaseMoveState.TwoPhaseMove<T>>, TwoPhaseMoveState<T>
Represents the state of a puzzle whose moves are described by two objects,
i.e.,
from
and to
. From a user interface-centric viewpoint,
it is suitable for puzzles where moves are made from a source to a
target location. Thus, a move is specified in two phases, each requiring a
selection, e.g., two subsequent mouse clicks are needed.-
Nested Class Summary
Nested classes/interfaces inherited from interface common.TwoPhaseMoveState
TwoPhaseMoveState.TwoPhaseMove<T>
-
Method Summary
Methods inherited from interface common.State
isLegalMove, makeMove
Methods inherited from interface puzzle.State
getLegalMoves, isSolved
Methods inherited from interface common.TwoPhaseMoveState
isLegalToMoveFrom
-
Method Details
-
clone
-