2
0
forked from s444420/AL-2020
AL-2020/shelf.py

27 lines
463 B
Python

import pygame
class Shelf:
def __init__(self, x, y):
self.x = x
self.y = y
self.products = []
def add_product(self, product):
self.products.append(product)
def get_product(self):
return self.products[0]
def get_coordinates(self):
c = [self.x, self.y]
return c
def is_empty(self):
if len(self.products) == 0:
return True
else:
return False