Restricted Destination
data class RestrictedDestination(moveGenerator: MoveGeneratorHex, region: Region2D) : MoveGeneratorHex
Content copied to clipboard
A given move can only occur if the destination is within a specific region
Constructors
RestrictedDestination
Link copied to clipboard
fun RestrictedDestination(moveGenerator: MoveGeneratorHex, region: Region2D)
Content copied to clipboard
Functions
component1
Link copied to clipboard
component2
Link copied to clipboard
copy
Link copied to clipboard
fun copy(moveGenerator: MoveGeneratorHex, region: Region2D): MoveGeneratorHex.RestrictedDestination
Content copied to clipboard
generate
Link copied to clipboard
open override fun generate(board: BoardHex, coordinate: Coordinate2D, piece: PieceHex, player: Player): List<BasicMoveHex>
Content copied to clipboard