automatyczny_kelner/src/obj/Goal.py

10 lines
289 B
Python
Raw Normal View History

from src.obj.Object import Object
class Goal(Object):
def __init__(self, position, square_size, screen_size):
super().__init__("goal", position, 0, square_size, screen_size)
def collide_test(self, waiter: Object) -> bool:
return waiter.position == self.position