Exemple #1
0
    //吃胡
    public void HuPai(SocketModel socketModel)
    {
        List <int> list       = socketModel.GetData();
        int        pos        = list[0];
        int        mj         = list[1];
        int        fangpaoPos = list[2];
        string     sendPos    = String.Empty;

        if (pos == GameInfo.Instance.positon)
        {
            sendPos = "bot";
        }
        else
        {
            sendPos = GameInfo.Instance.TryGetLocPos(GameInfo.Instance.positon, pos);
        }
        List <PlayerData> plist = socketModel.GetPdata();

        RoomEvent.DoChiHu(sendPos, mj, fangpaoPos, plist);
        //
        GameInfo.Instance.PlayFlag = false;
    }