StaticMove class

A move that starts and ends on the same square. This doesn't have any default implementation in the engine; it is intended for use in games that have a special move that doesn't move a piece, with its own move processor.

Inheritance

Constructors

StaticMove(int square)
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
dropPiece int?
The piece (type only) that is being dropped, if one is.
no setterinherited
enPassant bool
If this move is en passant.
no setterinherited
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 setterinherited
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
square int
final
to int
The board location this move ends at.
no setteroverride

Methods

algebraic({BoardSize size = BoardSize.standard}) String
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