import pygame class OrderTable(object): def __init__(self, x, y, game): self.game = game game.idItem += 1 game.idOrderTable += 1 self.idItem = game.idItem self.idOrderTable = game.idOrderTable self.x = x self.y = y self.image = pygame.image.load("./Images/drewno.jpg") self.type = "orderTable" self.hasDish = False def draw(self): self.rect = pygame.Rect(self.x, self.y, 50, 50) if self.hasDish: self.game.screen.blit(pygame.image.load("./Images/ladaJedzenie.png"),(self.x, self.y)) else: self.game.screen.blit(self.image, (self.x, self.y))