def tileWithinRange (origin, reach, target):
    """
        Returns true if the target is within range in all directions from origin
    """
    # Since we count diagonals as 1, we simply calculate the x and y components
    #  seperately:
    xDist = abs(origin.getX() - target.getX())
    yDist = abs(origin.getY() - target.getY())
    # As long as each component is below or equal to the range, we are good:
    if xDist <= reach and yDist <= reach:
        return True
    return False