Uses of Record Class
spinhex.model.AxialPosition
Packages that use AxialPosition
Package
Description
This package contains the model classes for the SpinHex application.
-
Uses of AxialPosition in spinhex.model
Classes in spinhex.model that implement interfaces with type arguments of type AxialPositionModifier and TypeClassDescriptionclass
A model for the SpinHex puzzle game, which implements theTwoPhaseActionState
interface.Fields in spinhex.model declared as AxialPositionModifier and TypeFieldDescriptionprotected static final AxialPosition[]
SpinHexModel.ADJACENT_DIRECTIONS
The relative positions of the six adjacent hexes in a hexagonal grid.Methods in spinhex.model that return AxialPositionModifier and TypeMethodDescriptionAxialPosition.add
(AxialPosition other) Adds another axial position to this one.AxialPosition.subtract
(AxialPosition other) Subtracts another axial position from this one.Methods in spinhex.model that return types with arguments of type AxialPositionModifier 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 AxialPositionModifier and TypeMethodDescriptionAxialPosition.add
(AxialPosition other) Adds another axial position to this one.byte
HexagonalGrid.get
(AxialPosition pos) Gets the value of a cell at the specified axial position.SpinHexModel.getHex
(AxialPosition position) Gets the color of the hex at the specified position.SpinHexModel.getNeighbors
(AxialPosition position) Gets the neighbors of the hex at the specified position.boolean
HexagonalGrid.isInBounds
(AxialPosition position) Checks if an axial position is within the bounds of the grid.boolean
SpinHexModel.isLegalToMoveFrom
(AxialPosition from) Checks if it is legal to move from the specified position.void
HexagonalGrid.set
(AxialPosition pos, byte value) Sets the value of a cell at the specified axial position.AxialPosition.subtract
(AxialPosition other) Subtracts another axial position from this one.Method parameters in spinhex.model with type arguments of type AxialPositionModifier 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.