TeleportMoveDefinition class

Inheritance

Constructors

TeleportMoveDefinition({Modality modality = Modality.both})
const

Properties

capture bool
no setterinherited
firstOnly bool
If true, this move is only possible as the piece's first move. Moves of this type will also set the en passant square. For example, a standard pawn's double move.
finalinherited
hashCode int
The hash code for this object.
no setterinherited
modality Modality
Modality indicates whether the move is quiet move, capture, or both.
finalinherited
quiet bool
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

excludeMove(int from, int to, int dirMult, BoardSize size) bool
Used to rapidly exclude moves in cases where we're looking for attacks.
inherited
normalise(BoardSize size) TeleportMoveDefinition
override
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