private static List <int> AIGetPai(LandLordUser myu, List <int> _lastDiscard, int _lastpos) { List <int> _ret = new List <int>(); List <int> _lastDiscardtemp = new List <int>(_lastDiscard); if (_lastDiscardtemp == null) { _lastDiscardtemp = new List <int>(); } if (_lastpos == myu._Pos) { _lastDiscardtemp = new List <int>(); } _ret = LandLord.GetTipList(myu._shouPaiArr, _lastDiscard); if (_ret.Count != 0) { LordPokerTypeEnum _ltype = LandLord.GetLordType(_ret); if (_ltype == LordPokerTypeEnum.Error) { TraceLogEx.Error("201702212024 fetal error " + JsonUtils.Serialize(myu._shouPaiArr) + "tip for" + JsonUtils.Serialize(_lastDiscard) + " LordPokerTypeEnum.Error :" + JsonUtils.Serialize(_ret)); } } return(_ret); }
public void RobotDealMSG(object UserIDandStrMSG) { object[] objArr = new object[4]; objArr = (object[])UserIDandStrMSG; int UserID = (int)objArr[0]; string strMSG = (string)objArr[1]; _us = (UserStatus)objArr[2]; myu = (LandLordUser)objArr[3]; try { RobotDealMSGEx(UserID, strMSG); } catch (Exception ex) { TraceLogEx.Error(ex, "201611122210ll"); } }