You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

9 lines
255 B

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