Example #1
0
	public void PutPieceByInput(int selected, int target)
	{
		ReqMovePawn req = new ReqMovePawn();
		req.Location = selected;
		req.Target = target;
		msg.SendMessageToServer(JgC2S_Msgs.kMovePawn, req);
	}
Example #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);
	}
Example #3
0
	public void PutPieceByInput(int selected, int target)
	{
		PutPiece(selected, target);

		ReqMovePawn req = new ReqMovePawn();
		req.Location = selected;
		req.Target = target;
		JgRefs.ins_.msg.SendMessageToServer(JgC2S_Msgs.kMovePawn, req); //refactor:
	}
Example #4
0
	void RequestNextPawnMove()
	{
		ReqMovePawn req = new ReqMovePawn();
		req.Location = 11;
		req.Target = 22;
		msg.SendMessageToServer(JgC2S_Msgs.kMovePawn, req);
	}