SimpleMove

sealed class SimpleMove<B : Board<B, MG, P, C>, MG : MoveGenerator<B, MG, P, C>, P : Piece<B, MG, P, C>, C : Coordinate> : Move<B, MG, P, C>

Types

AddPieceMove
Link copied to clipboard
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
BasicMove
Link copied to clipboard
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
RemovePieceMove
Link copied to clipboard
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

Functions

equals
Link copied to clipboard
open operator fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
open fun hashCode(): Int
toString
Link copied to clipboard
open fun toString(): String

Properties

checkForCheck
Link copied to clipboard
open val checkForCheck: Boolean = true
displayFrom
Link copied to clipboard
abstract val displayFrom: C?
displayPieceCaptured
Link copied to clipboard
abstract var displayPieceCaptured: P?
displayPieceMoved
Link copied to clipboard
abstract var displayPieceMoved: P
displayPiecePromotedTo
Link copied to clipboard
abstract var displayPiecePromotedTo: P?
displayTo
Link copied to clipboard
abstract var displayTo: C?
player
Link copied to clipboard
open override val player: Player

Inheritors

Move.SimpleMove
Link copied to clipboard
Move.SimpleMove
Link copied to clipboard
Move.SimpleMove
Link copied to clipboard