PieceType constructor
const
PieceType({
- String? betza,
- required List<
MoveDefinition> moves, - bool royal = false,
- PiecePromoOptions promoOptions = PiecePromoOptions.promoPiece,
- bool enPassantable = false,
- bool noSanSymbol = false,
- int value = Bishop.defaultPieceValue,
- List<
RegionEffect> regionEffects = const [], - List<
Action> actions = const [], - PieceOptimisationData? optimisationData,
Implementation
const PieceType({
this.betza,
required this.moves,
this.royal = false,
this.promoOptions = PiecePromoOptions.promoPiece,
this.enPassantable = false,
this.noSanSymbol = false,
this.value = Bishop.defaultPieceValue,
this.regionEffects = const [],
this.actions = const [],
this.optimisationData,
});