Update 'garbageTruck.py'

This commit is contained in:
Maksymilian Szygenda 2023-03-26 20:58:43 +02:00
parent 298fba3f6d
commit bfd78aee90

View File

@ -1,12 +1,13 @@
from typing import List
class garbageTruck:
position: List[int, int]
class GarbageTruck:
position: Tuple[int, int]
paper: []
plastic_and_metal: []
glass: []
bio: []
mixed: []
RecognizedGarbage: []
truckSpritePath = 'imgs/dust_car.png'
def __init__(self, position: List[int, int]) -> None:
self.position = position
@ -16,6 +17,7 @@ class garbageTruck:
self.bio = []
self.mixed = []
def sort_garbage(self, RecognizedGarbage) -> None:
if RecognizedGarbage.garbage_type == 0:
self.paper.append(RecognizedGarbage)