|
|
@ -3,7 +3,7 @@ class Object():
|
|
|
|
self.location = location
|
|
|
|
self.location = location
|
|
|
|
|
|
|
|
|
|
|
|
def distance_to(self, other):
|
|
|
|
def distance_to(self, other):
|
|
|
|
return self.location.distance(other.location)
|
|
|
|
return self.location.distance(other)
|
|
|
|
|
|
|
|
|
|
|
|
def cooldown_to(self, other):
|
|
|
|
def cooldown_to(self, other):
|
|
|
|
return self.location.get_cooldown(other.location) + 1
|
|
|
|
return self.location.get_cooldown(other) + 1
|