예제 #1
0
	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));
	}
예제 #2
0
	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);
	}
예제 #3
0
	void OnNtfMovePawn(NtfMovePawn ntf)
	{
		currentPlayerId = Jg.OpponentId(ntf.LocalId);
	}
예제 #4
0
	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));
		}
	}
예제 #5
0
	void OnNtfMovePawn(NtfMovePawn ntf)
	{
	}