parent
2eb2e7d1b0
commit
be8842de35
@ -1,3 +0,0 @@
|
||||
class Object():
|
||||
def __init__(self):
|
||||
self.location = None
|
@ -0,0 +1,9 @@
|
||||
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
|
Loading…
Reference in new issue