Compare commits
No commits in common. "8501e7e7b406ec2864b5305b64a34adbe1219061" and "29fcb83d83c4183f58605244d046039d5c9a74cc" have entirely different histories.
8501e7e7b4
...
29fcb83d83
@ -1,34 +0,0 @@
|
|||||||
from typing import List
|
|
||||||
|
|
||||||
class GarbageTruck:
|
|
||||||
position: Tuple[int, int]
|
|
||||||
paper: List[RecognizedGarbage]
|
|
||||||
plastic_and_metal: List[RecognizedGarbage]
|
|
||||||
glass: List[RecognizedGarbage]
|
|
||||||
bio: List[RecognizedGarbage]
|
|
||||||
mixed: List[RecognizedGarbage]
|
|
||||||
truckSpritePath = 'imgs/dust_car.png'
|
|
||||||
def __init__(self, position: List[int, int]) -> None:
|
|
||||||
self.position = position
|
|
||||||
self.paper = []
|
|
||||||
self.plastic_and_metal = []
|
|
||||||
self.glass = []
|
|
||||||
self.bio = []
|
|
||||||
self.mixed = []
|
|
||||||
|
|
||||||
|
|
||||||
def sort_garbage(self, RecognizedGarbage) -> None:
|
|
||||||
if RecognizedGarbage.garbage_type == 0:
|
|
||||||
self.paper.append(RecognizedGarbage)
|
|
||||||
|
|
||||||
elif RecognizedGarbage.garbage_type == 1:
|
|
||||||
self.plastic_and_metal.append(RecognizedGarbage)
|
|
||||||
|
|
||||||
elif RecognizedGarbage.garbage_type == 3:
|
|
||||||
self.glass.append(RecognizedGarbage)
|
|
||||||
|
|
||||||
elif RecognizedGarbage.garbage_type == 4:
|
|
||||||
self.bio.append(RecognizedGarbage)
|
|
||||||
|
|
||||||
elif RecognizedGarbage.garbage_type == 5:
|
|
||||||
self.mixed.append(RecognizedGarbage)
|
|
Loading…
Reference in New Issue
Block a user