PieceDefinition class

A definition of a PieceType, specific to a Variant. You don't ever need to build these, they are generated in variant initialisation.

Constructors

PieceDefinition({required PieceType type, required String symbol, required int value})
const
PieceDefinition.empty()
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
symbol String
final
type PieceType
final
value int
final

Methods

char(Colour colour) String
The symbol of this piece definition, respecting its colour.
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