class Object(): def __init__(self, location=None): self.location = location def distance_to(self, other): return self.location.distance(other.location) def cooldown_to(self, other): return self.location.get_cooldown(other.location) + 1