Chess Pawn3 D
abstract class ChessPawn3D(player: Player, direction: List<Direction3D>, captureOnlyDir: List<Direction3D>, promotionRegion: Region3D, pawnPromotions: List<Piece3D>) : Pawn, Piece3D
Content copied to clipboard
Represents a pawn in standard chess
Parameters
player
the player who owns the pawn
direction
the direction that the pawn is facing (determines the direction that pawn moves to)
startingRow
the row that the pawn starts from (used for double step move)
promotionRegion
the region that the promotion can occur
pawnPromotions
the pieces that the pawn can be promoted to
Constructors
ChessPawn3D
Link copied to clipboard
fun ChessPawn3D(player: Player, direction: List<Direction3D>, captureOnlyDir: List<Direction3D>, promotionRegion: Region3D, pawnPromotions: List<Piece3D>)
Content copied to clipboard
the player who owns the pawn