void OnNtfMovePawn(NtfMovePawn ntf) { //Debug.Log("InGame.OnNtfMovePawn \n" + ntf.ToString() + "\n"); //Debug.Log(string.Format("MovePawn {0} -> {1} \n", ntf.Location, ntf.Target)); //game.PutInPiece(ntf.Location, ntf.Target); if (ntf.LocalId != appPlayerId) { JgRefs.ins_.game.PutPiece(ntf.Location, ntf.Target); } UpdateCurrentTurnUI(Jg.OpponentId(ntf.LocalId)); }
void HandleMessage(JStateObject state, ReqMovePawn req) { NtfMovePawn ntf = new NtfMovePawn(); ntf.LocalId = state.indexInRoom; ntf.Location = req.Location; ntf.Target = req.Target; ntf.Dummy = 9999; NotifyMessageToAllClients((byte)JgS2C_Msgs.kNtfMovePawn, ntf); }
void OnNtfMovePawn(NtfMovePawn ntf) { currentPlayerId = Jg.OpponentId(ntf.LocalId); }
void OnNtfMovePawn(NtfMovePawn ntf) { // Debug.Log("VirtualPlayer.OnNtfMovePawn \n" + ntf.ToString()); bool isMe = ntf.LocalId == localId; if (isMe) { } else { OnTurnChanged(localId); //Jg.OpponentId(ntf.LocalId)); } }
void OnNtfMovePawn(NtfMovePawn ntf) { }