示例#1
0
        public void SendMJsonObject(MJsonMessageTsumo jsonmsg)
        {
            // logging
            logger.MjLog(MjsonObjectToString(jsonmsg));

            var paiHiddemMsg = new MJsonMessageTsumo(jsonmsg.actor, Pai.UNKNOWN_PAI_STRING);
            
            for (int i = 0; i < clients.Count; i++)
            {
                if( i == jsonmsg.actor )
                {
                    clients[i].SendMessageToClient(MjsonObjectToString(jsonmsg));
                }
                else
                {
                    clients[i].SendMessageToClient(MjsonObjectToString(paiHiddemMsg));
                }
            }
        }
示例#2
0
 public void ChangeState(MJsonMessageTsumo sentMessage)
 {
     gameState = AfterTsumoState.GetInstance();
     SetLastActor(sentMessage.actor);
     messageList.Clear();
 }