driver_online.dart 803 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. import '../models/game_event.dart';
  2. import '../models/player.dart';
  3. import 'player_driver.dart';
  4. /// Description: 在线玩家驱动
  5. /// Time : 05/06/2023 Saturday
  6. /// Author : liuyuqi.gov@msn.cn
  7. class DriverOnline extends PlayerDriver {
  8. DriverOnline(Player player) : super(player) {
  9. canBacktrace = false;
  10. }
  11. @override
  12. Future<bool> tryDraw() {
  13. return Future.value(true);
  14. }
  15. @override
  16. Future<String?> move() {
  17. player.manager.add(GameLockEvent(true));
  18. throw UnimplementedError();
  19. }
  20. @override
  21. Future<String> ponder() {
  22. throw UnimplementedError();
  23. }
  24. @override
  25. void completeMove(String move) {
  26. throw UnimplementedError();
  27. }
  28. @override
  29. Future<bool> tryRetract() {
  30. throw UnimplementedError();
  31. }
  32. }