Atom class

A single component of a piece's move set.

Constructors

Atom({required String base, List<String> dirMods = const [], List<String> funcMods = const [], int range = 1, Modality modality = Modality.both})
const

Properties

base String
final
capture bool
no setter
directions List<Direction>
Generates all of the directions for this atom.
no setter
dirMods List<String>
final
enPassant bool
no setter
firstOnly bool
no setter
funcMods List<String>
final
hashCode int
The hash code for this object.
no setterinherited
lame bool
no setter
limitedHopper bool
no setter
modality Modality
final
moveDefinitions List<MoveDefinition>
Generates all the move definitions for this atom.
no setter
quiet bool
no setter
range int
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
teleport bool
no setter
unlimitedHopper bool
no setter

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited