1234567891011121314151617181920212223242526272829303132333435363738 |
- import '../models/game_event.dart';
- import '../models/player.dart';
- import 'player_driver.dart';
- /// Description: 在线玩家驱动
- /// Time : 05/06/2023 Saturday
- /// Author : liuyuqi.gov@msn.cn
- class DriverOnline extends PlayerDriver {
- DriverOnline(Player player) : super(player) {
- canBacktrace = false;
- }
- @override
- Future<bool> tryDraw() {
- return Future.value(true);
- }
- @override
- Future<String?> move() {
- player.manager.add(GameLockEvent(true));
- throw UnimplementedError();
- }
- @override
- Future<String> ponder() {
- throw UnimplementedError();
- }
- @override
- void completeMove(String move) {
- throw UnimplementedError();
- }
- @override
- Future<bool> tryRetract() {
- throw UnimplementedError();
- }
- }
|