Exemplo n.º 1
0
 /// <summary>
 /// �������a���X
 /// </summary>
 /// <param name="playernumber">�]�w���h�֭Ӫ��a</param>
 /// <param name="deal">�@�Ӫ��a���h�ֱi</param>
 public AllPlayers(int playernumber, int deal)
 {
     this.players = new BrandPlayer[playernumber];
     this.isPlayer = new bool[playernumber];
     this.lo = new Location();
     this.table = new BrandPlayer();
     this.show_table = new BrandPlayer();
     this.dealnumber = deal;
     this.countplayers = playernumber;
     this.state = (uint)lo.Winer;
     this.brand_count = 0;
     this.basic_tai = Mahjong.Properties.Settings.Default.BasicTai;
     this.one_tai = Mahjong.Properties.Settings.Default.One_Tai;
     this.teamCount = new int[playernumber];
     this.names = new string[playernumber];
     this.showMessageBox = true;
     this.place = new Place();
     for (int i = 0; i < playernumber; i++)
         teamCount[i] = 1;
     money = new int[playernumber];
     setBasicMoney(Mahjong.Properties.Settings.Default.Money);
     win_Times = 1;
     names[0] = Mahjong.Properties.Settings.Default.Player_North;
     names[1] = Mahjong.Properties.Settings.Default.Player_East;
     names[2] = Mahjong.Properties.Settings.Default.Player_South;
     names[3] = Mahjong.Properties.Settings.Default.Player_West;
 }
Exemplo n.º 2
0
 /// <summary>
 /// 設定玩家
 /// </summary>
 /// <param name="all">AllPlayers</param>
 public virtual void Setup(AllPlayers all)
 {
     this.all = all;
     this.place = all.place;
     pc.ShowMessageBox = all.showMessageBox = ShowMessageBox_Menu.Checked;
     setFlowLayout();
     setTitle();
 }