예제 #1
0
    /// <summary>
    /// 排序 只需要给自己的排序
    /// </summary>
    /// <param name="index"></param>
    public void SortCard()
    {
        PlayerData data = _infoList[(Int32)selfOrderIndex - 1];

        CardRules.SortCardsForInt(data.HandCardList, laizi);
        data.HandCardList.Reverse();
        EventDispatcher.GetInstance().UIFrameWorkEventManager.TriggerEvent <List <PlayerData> >(EventId.UIFrameWork_Deal_Card_First, _infoList);
    }
예제 #2
0
    public void ReconnectionShowSelfCard(Int64 index)
    {
        PlayerData data = _infoList[(Int32)index - 1];

        CheckIsTingPai(data.HandCardList, 0);
        CardRules.SortCardsForInt(data.HandCardList, TableController.Instance.laizi);
        data.HandCardList.Reverse();
        EventDispatcher.GetInstance().UIFrameWorkEventManager.TriggerEvent <List <PlayerData> >(EventId.UIFrameWork_Reconnection, _infoList);
    }
예제 #3
0
    /// <summary>
    /// 断线重连的时候,自己的手牌里面包括当前摸的牌,为了走摸牌的流程,把自己当前的摸牌从手牌中剔除
    /// </summary>
    public void ReconnectionRemoveMopai(Int64 mopai)
    {
        int        index = (int)selfOrderIndex;
        PlayerData item  = _infoList[index - 1];

        item.RemoveAppointMj(mopai);
        CardRules.SortCardsForInt(item.HandCardList, TableController.Instance.laizi);
        item.HandCardList.Reverse();
        EventDispatcher.GetInstance().UIFrameWorkEventManager.TriggerEvent <List <PlayerData> >(EventId.UIFrameWork_Reconnection, _infoList);
    }