Sztuczna_Inteligencja/orderTable.py

22 lines
679 B
Python
Raw Normal View History

2019-03-26 11:05:21 +01:00
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
2019-04-17 00:12:39 +02:00
self.image = pygame.image.load("./Images/drewno.jpg")
2019-03-26 11:05:21 +01:00
self.type = "orderTable"
2019-06-05 01:09:16 +02:00
self.hasDish = False
2019-03-26 11:05:21 +01:00
def draw(self):
self.rect = pygame.Rect(self.x, self.y, 50, 50)
2019-06-05 01:09:16 +02:00
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))