13 lines
210 B
Python
13 lines
210 B
Python
![]() |
import pygame
|
||
|
|
||
|
class Shelf:
|
||
|
|
||
|
def __init__(self, id, field):
|
||
|
self.id = id
|
||
|
self.field = field
|
||
|
self.products = []
|
||
|
|
||
|
def addProduct(self, sweet):
|
||
|
self.products.append(sweet)
|
||
|
|