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
273 B
9 lines
273 B
2 years ago
|
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
|