automatyczny_kelner/models/Kitchen.py

19 lines
458 B
Python
Raw Normal View History

2023-03-31 00:48:17 +02:00
import pygame
from models.Object import Object
from models.Waiter import Waiter
class Kitchen(Object):
def __init__(self, square_size, screen_size, left_square, top_square):
super().__init__(
'kitchen',
square_size,
screen_size,
left_square,
top_square
)
def take_orders(self, waiter: Waiter):
for table in waiter.get_order_list():
table.done_order()