Uses of Record Class
spinhex.model.TwoPhaseActionState.TwoPhaseAction
Packages that use TwoPhaseActionState.TwoPhaseAction
Package
Description
This package contains the model classes for the SpinHex application.
-
Uses of TwoPhaseActionState.TwoPhaseAction in spinhex.model
Subinterfaces with type arguments of type TwoPhaseActionState.TwoPhaseAction in spinhex.modelModifier and TypeInterfaceDescriptioninterface
TwoPhaseActionState<T,
U> Represents a state in a two-phase action system where actions are performed in two distinct phases: first selecting a source element, then specifying the action to perform from that source.Methods in spinhex.model that return types with arguments of type TwoPhaseActionState.TwoPhaseActionModifier and TypeMethodDescriptionpuzzle.State
<TwoPhaseActionState.TwoPhaseAction<AxialPosition, Rotation>> SpinHexModel.clone()
Creates a clone of the currentSpinHexModel
state.SpinHexModel.getLegalMoves()
Gets the set of legal moves available from the current state.Methods in spinhex.model with parameters of type TwoPhaseActionState.TwoPhaseActionModifier and TypeMethodDescriptionboolean
SpinHexModel.isLegalMove
(TwoPhaseActionState.TwoPhaseAction<AxialPosition, Rotation> moveAction) Checks if the specified move action is legal.void
ReadOnlySpinHexModelWrapper.makeMove
(TwoPhaseActionState.TwoPhaseAction<AxialPosition, Rotation> moveAction) Makes a move in the SpinHex model and updates the property model accordingly.void
SpinHexModel.makeMove
(TwoPhaseActionState.TwoPhaseAction<AxialPosition, Rotation> moveAction) Makes a move based on the specified action.