WhitePiece class abstract

Abstraction that extends Piece by setting the color to PieceColor.white.

Inheritance
Implementers

Constructors

WhitePiece()
Const constructor for overrided members to be able to have const constructors.
const

Properties

color PieceColor
color of the piece.
final
fenSymbol String
Returns FEN symbol for this piece.
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
isBlack bool
Returns true if this piece is black.
final
isWhite bool
Returns true if this piece is white.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type PieceType
type of the piece, e.g. pawn, knight, etc.
no setterinherited

Methods

getPossibleMovesFromSquareOnBoard(Square square, Board board) List<Move>
Returns the list of possible moves with this piece from square, including moves that are illegal in current position.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object? other) bool
The equality operator.
inherited