Ejemplo n.º 1
0
    //牛牛亮牌
    public void sendShowCard()
    {
        CMD_C_OxCard bOX = new CMD_C_OxCard();

        bOX.bOX = 0;
        SocketEngine.Instance.SendScoketData((int)GameServer.MDM_GF_GAME, (int)MDM_GP_CLIENT.SUB_C_OPEN_CARD, NetUtil.StructToBytes(bOX), Marshal.SizeOf(bOX));
        MyDebug.Log("------------------用户不叫庄------------------------");
    }
Ejemplo n.º 2
0
 public void showHandPoker()
 {
     //struct CMD_C_OxCard
     //{
     //    public byte bOX;                                //牛牛标志 
     //};
     PokerCard[,] pokerData = FourBullPlayerData.getInstance().playerPokerSet;
     PokerCard[] pokerArray = new PokerCard[5];
     for (int i = 0; i < 5; i++)
     {
         pokerArray[i] = pokerData[0, i];
     }
     PokerStructInfo result = FourBullLogic.getInstance().pokerPoints(pokerArray);
     CMD_C_OxCard cc = new CMD_C_OxCard();
     cc.bOX = (result.Points == -1) ? (byte)0 : (byte)1;
     FourBull.Messager.Broadcast(FourBullEvent.StopClock, 4);
     transform.FindChild("btnBluff").gameObject.SetActive(false);
     FourBullCommand.Instance.SendGamePacket<CMD_C_OxCard>((ushort)PROTOCOL_CLIENT.SUB_C_OPEN_CARD, cc);
 }