Esempio n. 1
0
        /// <summary>
        /// 设置玩家Item信息
        /// </summary>
        private void SetPlayerInfo(int chair, MahjongUserInfo data)
        {
            if (!GameCenter.GameProcess.IsCurrState <StateGamePlaying>())
            {
                PlayersOther.ReadyState(chair, data.IsReady);
            }
            PlayerInfoItem item = this[chair];

            item.IsTing = data.IsAuto;
        }
Esempio n. 2
0
 /// <summary>
 /// 更新当前操作玩家
 /// </summary>
 private void UpdateCurrOpPlayer(EvtHandlerArgs args)
 {
     for (int i = 0; i < DataCenter.MaxPlayerCount; i++)
     {
         PlayerInfoItem item = this[i];
         if (null != item)
         {
             item.IsCurrOp = DataCenter.CurrOpChair == i;
         }
     }
 }