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});
|
|
|
|
}
|
|
|
|
|
2022-12-18 00:04:08 +00:00
|
|
|
class InitBoard extends ChessEvent {
|
|
|
|
InitBoard();
|
2022-11-13 12:10:06 +00:00
|
|
|
}
|
|
|
|
|
2022-12-18 00:04:08 +00:00
|
|
|
class ColorDetermined extends ChessEvent {
|
|
|
|
final ChessColor myColor;
|
|
|
|
|
|
|
|
ColorDetermined({required this.myColor});
|
|
|
|
}
|