mchess-client/lib/chess_bloc/chess_events.dart

19 lines
416 B
Dart
Raw Normal View History

2022-11-13 12:10:06 +00:00
import 'package:mchess/chessapp/chess_utils.dart';
abstract class ChessEvent {}
class PieceMoved extends ChessEvent {
final ChessCoordinate startSquare;
final ChessCoordinate endSquare;
PieceMoved({required this.startSquare, required this.endSquare});
}
class PreCheckMove extends ChessEvent {
final ChessMove move;
PreCheckMove({required this.move});
}
class BoardFlippedEvent extends ChessEvent {}