public Move createMove(byte player, byte x) { Move move = Move.create(); move.id = moves.size(); move.player = player; move.data = new byte[1]; move.data[0] = x; return move; }
public Move createMove(byte player, byte x, byte y) { Move move = Move.create(); move.data = new byte[2]; move.id = moves.size(); move.player = player; move.data[X] = x; move.data[Y] = y; return move; }