Exemplo n.º 1
0
    /// <summary>
    /// 通知某座位操作
    /// </summary>
    /// <param name="proto"></param>
    public void NoticeSeatOperate(PDK_NEXT_PLAYER proto)
    {
        SeatEntity seat = GetSeatBySeatPos(proto.pos);

        if (seat == null)
        {
            return;
        }

        CurrentRoom.OperateSeat = seat;
        SetSeatPass(CurrentRoom.RecentlyPlayPoker.Pos, CurrentRoom.OperateSeat);
        if (seat.Pos == CurrentRoom.CurrAlreadyPlayPos)
        {
            //某人继续出牌
            CurrentRoom.RecentlyPlayPoker.Reset();
        }

        seat.Status = SeatEntity.SeatStatus.Operate;

        if (proto.pos == PlayerSeat.Pos)
        {
            //重置提示
            Currhint.Reset();
        }


        if (seat == PlayerSeat)
        {
            SendOperateStateChangeNotify(seat);
        }
        SendRoomInfoChangeNotify();
        //SendSeatInfoChangeNotify(seat);

        SetCountDown(0, seat == PlayerSeat, seat.Index);
    }
Exemplo n.º 2
0
 public NoticeSeatOperateCommand(PDK_NEXT_PLAYER data)
 {
     m_DataEntity = data;
 }