Add chess_events.dart file.
This commit is contained in:
parent
a6880dd0e9
commit
126286ece4
18
lib/chess_bloc/chess_events.dart
Normal file
18
lib/chess_bloc/chess_events.dart
Normal 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 {}
|
Loading…
Reference in New Issue
Block a user