Sztuczna_Inteligencja/table.py

14 lines
465 B
Python
Raw Permalink Normal View History

2019-04-10 10:31:09 +02:00
import pygame
2019-04-16 13:28:11 +02:00
from gridElement import GridElement
2019-04-10 10:31:09 +02:00
2019-04-16 13:28:11 +02:00
class Table(GridElement):
def __init__(self, x=None, y=None, game=None):
GridElement.__init__(self, x, y, game)
2019-04-10 10:31:09 +02:00
game.idTable += 1
self.id = game.idTable
2019-04-16 13:28:11 +02:00
self.isBusy = False
2019-04-14 18:33:30 +02:00
self.image = pygame.image.load("./Images/table.png")
2019-04-16 13:28:11 +02:00
self.image = pygame.transform.scale(self.image, (self.game.gridElementWidth, self.game.gridElementHeight))
2019-04-10 10:31:09 +02:00
self.type = "table"