GatingMove class

A move that involves a piece being moved out of the player's gate, and onto the player's first rank.

Inheritance

Constructors

GatingMove({required StandardMove child, required int dropPiece, bool dropOnRookSquare = false})
const

Properties

capture bool
Whether a piece is captured as a result of this move.
no setterinherited
capturedPiece int?
The piece (including colour and flags) that is being captured, if one is.
no setterinherited
castling bool
Whether this is a castling move.
no setterinherited
child StandardMove
finalinherited
dropOnRookSquare bool
For gating drops that are also castling moves - should we gate on square that the king came from (false) or the rook (true).
final
dropPiece int
The piece (type only) that is being dropped, if one is.
final
enPassant bool
If this move is en passant.
no setterinherited
from int
The board location this move starts at.
no setterinherited
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 setterinherited
hashCode int
The hash code for this object.
no setterinherited
promoPiece int?
The piece (type only) that is being promoted to.
no setterinherited
promotion bool
Whether the moved piece is promoted.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
setEnPassant bool
If this move sets the en passant flag.
no setterinherited
to int
The board location this move ends at.
no setterinherited

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