Uses of Enum Class
spinhex.model.Rotation
Packages that use Rotation
Package
Description
This package contains the model classes for the SpinHex application.
-
Uses of Rotation in spinhex.model
Subclasses with type arguments of type Rotation in spinhex.modelModifier and TypeClassDescriptionenum
Represents the direction of rotation in the SpinHex game.Classes in spinhex.model that implement interfaces with type arguments of type RotationModifier and TypeClassDescriptionclass
A model for the SpinHex puzzle game, which implements theTwoPhaseActionState
interface.Methods in spinhex.model that return RotationModifier and TypeMethodDescriptionstatic Rotation
Returns the enum constant of this class with the specified name.static Rotation[]
Rotation.values()
Returns an array containing the constants of this enum class, in the order they are declared.Methods in spinhex.model that return types with arguments of type RotationModifier 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.Method parameters in spinhex.model with type arguments of type RotationModifier 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.