forked from s474139/Inteligentny_Wozek
27 lines
595 B
Python
27 lines
595 B
Python
import pygame
|
|
|
|
# from paczka import Paczka
|
|
|
|
class listOfItems:
|
|
list = []
|
|
item_group = pygame.sprite.Group()
|
|
|
|
def add(self, item):
|
|
self.list.append(item)
|
|
self.item_group.add(item)
|
|
|
|
def remove(self):
|
|
last_item = self.list.pop()
|
|
self.item_group.remove(last_item)
|
|
|
|
|
|
# def zainicjuj_liste_paczek(init_x, init_y):
|
|
# packageList = listOfPackages()
|
|
# demo_paczka = Paczka('duzy', 10, any, False, True, False, any, any, any, any, any)
|
|
# demo_paczka.update_position(init_x, init_y)
|
|
# packageList.add(demo_paczka)
|
|
# return packageList
|
|
|
|
|
|
|