BasicMove

data class BasicMove<B : Board<B, MG, P, C>, MG : MoveGenerator<B, MG, P, C>, P : Piece<B, MG, P, C>, C : Coordinate>(from: C, to: C, pieceMoved: P, player: Player, pieceCaptured: P?, pieceCapturedCoordinate: C, piecePromotedTo: P?, checkForCheck: Boolean) : Move.SimpleMove<B, MG, P, C>

Basic Move

Constructors

BasicMove
Link copied to clipboard
fun <P : Piece<B, MG, P, C>, C : Coordinate> BasicMove(from: C, to: C, pieceMoved: P, player: Player, pieceCaptured: P? = null, pieceCapturedCoordinate: C = to, piecePromotedTo: P? = null, checkForCheck: Boolean = true)

Functions

component1
Link copied to clipboard
operator fun component1(): C
component2
Link copied to clipboard
operator fun component2(): C
component3
Link copied to clipboard
operator fun component3(): P
component4
Link copied to clipboard
operator fun component4(): Player
component5
Link copied to clipboard
operator fun component5(): P?
component6
Link copied to clipboard
operator fun component6(): C
component7
Link copied to clipboard
operator fun component7(): P?
component8
Link copied to clipboard
operator fun component8(): Boolean
copy
Link copied to clipboard
fun copy(from: C, to: C, pieceMoved: P, player: Player, pieceCaptured: P? = null, pieceCapturedCoordinate: C = to, piecePromotedTo: P? = null, checkForCheck: Boolean = true): Move.SimpleMove.BasicMove<B, MG, P, C>
equals
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
open override fun hashCode(): Int
toString
Link copied to clipboard
open override fun toString(): String

Properties

checkForCheck
Link copied to clipboard
open override val checkForCheck: Boolean = true
displayFrom
Link copied to clipboard
open override val displayFrom: C
displayPieceCaptured
Link copied to clipboard
open override var displayPieceCaptured: P?
displayPieceMoved
Link copied to clipboard
open override var displayPieceMoved: P
displayPiecePromotedTo
Link copied to clipboard
open override var displayPiecePromotedTo: P?
displayTo
Link copied to clipboard
open override var displayTo: C?
from
Link copied to clipboard
val from: C
pieceCaptured
Link copied to clipboard
val pieceCaptured: P? = null
pieceCapturedCoordinate
Link copied to clipboard
val pieceCapturedCoordinate: C
pieceMoved
Link copied to clipboard
val pieceMoved: P
piecePromotedTo
Link copied to clipboard
val piecePromotedTo: P? = null
player
Link copied to clipboard
open override val player: Player
to
Link copied to clipboard
val to: C