Add chess_events.dart file.

This commit is contained in:
Marco 2022-11-13 13:10:06 +01:00
parent a6880dd0e9
commit 126286ece4

View File

@ -0,0 +1,18 @@
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 {}