PieceType constructor

const PieceType({
  1. String? betza,
  2. required List<MoveDefinition> moves,
  3. bool royal = false,
  4. PiecePromoOptions promoOptions = PiecePromoOptions.promoPiece,
  5. bool enPassantable = false,
  6. bool noSanSymbol = false,
  7. int value = Bishop.defaultPieceValue,
  8. List<RegionEffect> regionEffects = const [],
  9. List<Action> actions = const [],
  10. 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,
});