def METHOD_NAME(self, x_cells, y_cells, height, unit_res):
    for x in range(x_cells):
        for y in range(y_cells):
            self._addRes(x, y, height, unit_res, (x == x_cells-1) and (y == y_cells-1))