2019-03-19 23:36:06 +01:00
|
|
|
import pygame
|
|
|
|
|
|
|
|
class Table(object):
|
|
|
|
|
|
|
|
def __init__(self, x, y, game, height=2, width=4):
|
|
|
|
self.x = x
|
|
|
|
self.y = y
|
|
|
|
self.height = height
|
|
|
|
self.width = width
|
|
|
|
self.game = game
|
|
|
|
game.idTable += 1
|
2019-03-20 23:46:50 +01:00
|
|
|
game.idItem += 1
|
|
|
|
self.number = game.idItem
|
2019-03-19 23:36:06 +01:00
|
|
|
self.isBusy = False
|
2019-05-19 22:46:37 +02:00
|
|
|
self.isClean = True
|
2019-03-19 23:36:06 +01:00
|
|
|
self.id = game.idTable
|
|
|
|
self.image = pygame.image.load("./Images/tableSmall.png")
|
2019-03-20 23:46:50 +01:00
|
|
|
self.type = "table"
|
2019-03-19 23:36:06 +01:00
|
|
|
|
|
|
|
def draw(self):
|
2019-03-20 20:42:55 +01:00
|
|
|
self.table = pygame.Rect(self.x, self.y, 50, 50)
|
2019-04-17 00:12:39 +02:00
|
|
|
pygame.draw.rect(self.game.screen, (100, 0, 100), self.table)
|
|
|
|
#self.game.screen.blit(self.image, (self.x, self.y))
|