mchess-client/lib/chess_bloc/chess_events.dart
2022-12-18 01:04:08 +01:00

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});
}