From dfe2e5041423ad9720cb3741457bcb052fbac39d Mon Sep 17 00:00:00 2001 From: shaaqu Date: Mon, 18 May 2020 17:24:03 +0200 Subject: [PATCH] create Shelf --- .idea/misc.xml | 2 +- .idea/workspace.xml | 29 +++++++++++++++++++++++------ .idea/wozek.iml | 2 +- shelf.py | 12 ++++++++++++ 4 files changed, 37 insertions(+), 8 deletions(-) create mode 100644 shelf.py diff --git a/.idea/misc.xml b/.idea/misc.xml index 52c15d7..8656114 100644 --- a/.idea/misc.xml +++ b/.idea/misc.xml @@ -3,5 +3,5 @@ - + \ No newline at end of file diff --git a/.idea/workspace.xml b/.idea/workspace.xml index 95a134d..fcf7da5 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -2,10 +2,10 @@ - + + - - + + @@ -29,6 +34,7 @@ + @@ -120,15 +135,17 @@ - + + - - + + \ No newline at end of file diff --git a/.idea/wozek.iml b/.idea/wozek.iml index 85c7612..fa80a76 100644 --- a/.idea/wozek.iml +++ b/.idea/wozek.iml @@ -4,7 +4,7 @@ - + diff --git a/shelf.py b/shelf.py new file mode 100644 index 0000000..eb9e8f7 --- /dev/null +++ b/shelf.py @@ -0,0 +1,12 @@ +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) +