WrapperMove class

A type of move that wraps another move and extends its functionality. Currently child is limited to StandardMoves only.

Implemented types
Implementers

Constructors

WrapperMove({required StandardMove child})
const

Properties

capture bool
Whether a piece is captured as a result of this move.
no setteroverride
capturedPiece int?
The piece (including colour and flags) that is being captured, if one is.
no setteroverride
castling bool
Whether this is a castling move.
no setteroverride
child StandardMove
final
dropPiece int?
The piece (type only) that is being dropped, if one is.
no setteroverride
enPassant bool
If this move is en passant.
no setteroverride
from int
The board location this move starts at.
no setteroverride
gate bool
Whether this is a gated drop, e.g. the drops in Seirawan chess.
no setteroverride
handDrop bool
Whether this is a drop move where the piece came from the hand to an empty square, e.g. the drops in Crazyhouse.
no setteroverride
hashCode int
The hash code for this object.
no setterinherited
promoPiece int?
The piece (type only) that is being promoted to.
no setteroverride
promotion bool
Whether the moved piece is promoted.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
setEnPassant bool
If this move sets the en passant flag.
no setteroverride
to int
The board location this move ends at.
no setteroverride

Methods

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