jianboy 1 year ago
parent
commit
c3e3e31537
2 changed files with 9 additions and 8 deletions
  1. 1 1
      lib/main.dart
  2. 8 7
      lib/models/play_mode.dart

+ 1 - 1
lib/main.dart

@@ -17,7 +17,7 @@ import 'game_board.dart';
 /// Author     : liuyuqi.gov@msn.cn
 void main() async {
   WidgetsFlutterBinding.ensureInitialized();
-   // pc 平台,非 web 版本
+   // pc 平台,非 web 版本,设置窗体大小
   if (!kIsWeb && (Platform.isWindows || Platform.isMacOS || Platform.isLinux)) {
     await windowManager.ensureInitialized();
 

+ 8 - 7
lib/models/play_mode.dart

@@ -1,11 +1,12 @@
-
-
-class PlayMode{
+/// Description: 游戏模式
+/// Time       : 05/06/2023 Saturday
+/// Author     : liuyuqi.gov@msn.cn
+class PlayMode {
   final String mode;
 
-  static const modeRobot = PlayMode('robot');
-  static const modeOnline = PlayMode('online');
-  static const modeFree = PlayMode('free');
+  static const modeRobot = PlayMode('robot'); // 机器人模式
+  static const modeOnline = PlayMode('online'); // 在线对弈模式
+  static const modeFree = PlayMode('free');  // 自由模式
 
   const PlayMode(this.mode);
-}
+}