MoveDefinition class abstract
- Implementers
Constructors
- MoveDefinition({Modality modality = Modality.both, bool firstOnly = false})
-
const
- MoveDefinition.fromBetza(Atom atom, Direction d)
-
factory
Properties
- capture → bool
-
no setter
- 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.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- modality → Modality
-
Modality indicates whether the move is quiet move, capture, or both.
final
- quiet → bool
-
no setter
- 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.
-
normalise(
BoardSize size) → MoveDefinition -
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