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