AddPieceMove

data class AddPieceMove<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 add pieces on the given coordinate

Parameters

piece

the piece to be added

coordinate

the coordinate for the piece to be added to

Constructors

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

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.AddPieceMove<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 added to
displayFrom
Link copied to clipboard
open override val displayFrom: C
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?
piece
Link copied to clipboard
val piece: P
the piece to be added
player
Link copied to clipboard
open override val player: Player