21 lines
437 B
Dart
21 lines
437 B
Dart
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 InitBoard extends ChessEvent {
|
|
InitBoard();
|
|
}
|
|
|
|
class ColorDetermined extends ChessEvent {
|
|
final ChessColor myColor;
|
|
|
|
ColorDetermined({required this.myColor});
|
|
}
|