RemovePieceMove

data class RemovePieceMove<B : Board<B, MG, P, C>, MG : MoveGenerator<B, MG, P, C>, P : Piece<B, MG, P, C>, C : Coordinate>(player: Player, piece: P, coordinate: C) : Move.SimpleMove<B, MG, P, C>

A game move to remove pieces on the given coordinate

Parameters

piece

the piece to be removed

coordinate

the coordinate for the piece to be removed from

Constructors

RemovePieceMove
Link copied to clipboard
fun <P : Piece<B, MG, P, C>, C : Coordinate> RemovePieceMove(player: Player, piece: P, coordinate: C)
the piece to be removed

Functions

component1
Link copied to clipboard
operator fun component1(): Player
component2
Link copied to clipboard
operator fun component2(): P
component3
Link copied to clipboard
operator fun component3(): C
copy
Link copied to clipboard
fun copy(player: Player, piece: P, coordinate: C): Move.SimpleMove.RemovePieceMove<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 val checkForCheck: Boolean
coordinate
Link copied to clipboard
val coordinate: C
the coordinate for the piece to be removed from
displayFrom
Link copied to clipboard
open override val displayFrom: C? = null
displayPieceCaptured
Link copied to clipboard
open override var displayPieceCaptured: P? = null
displayPieceMoved
Link copied to clipboard
open override var displayPieceMoved: P
displayPiecePromotedTo
Link copied to clipboard
open override var displayPiecePromotedTo: P? = null
displayTo
Link copied to clipboard
open override var displayTo: C? = null
piece
Link copied to clipboard
val piece: P
the piece to be removed
player
Link copied to clipboard
open override val player: Player