コード例 #1
0
 public GameRiver_Auto(GameRiver parent, int delay, bool isEnemy = false)
     : base(parent, "电脑", isEnemy)
 {
     this.delay = delay;
 }
コード例 #2
0
 public IGameRiverPlayer(GameRiver parent, string name, bool isEnemy = false)
 {
     this.parent = parent;
     this.isEnemy = isEnemy;
     statue = PlayerStatue.Unknown;
     this.name = name;
 }
コード例 #3
0
 /// <summary>
 /// 弹出过河棋游戏对话框,并隐藏父对话框
 /// </summary>
 /// <param name="parent">父对话框</param>
 /// <returns>对话框返回值,恒为OK</returns>
 public static DialogResult ShowDialog(Form parent)
 {
     parent.Hide();
     var res = new GameRiver().ShowDialog((IWin32Window)parent);
     parent.Show();
     return res;
 }
コード例 #4
0
 public GameRiver_Local(GameRiver parent, string name, bool isEnemy = false)
     : base(parent, name, isEnemy)
 {
 }