speed bumps

This commit is contained in:
Wiktor Szynaka 2023-05-13 20:02:42 +02:00
parent f0d6001efa
commit 4ab84deaf3

11
city.py
View File

@ -6,21 +6,16 @@ from gameContext import GameContext
class Node: class Node:
garbageCan: GarbageCan garbageCan: GarbageCan
id: int
def __init__(self, id: int, can: GarbageCan) -> None:
self.id
self.can = can
class Bump:
speedBump: SpeedBump speedBump: SpeedBump
id: int id: int
def __init__(self, id: int, bump: SpeedBump) -> None: def __init__(self, id: int, can: GarbageCan, bump: SpeedBump) -> None:
self.id self.id
self.can = can
self.bump = bump self.bump = bump
class City: class City:
nodes: List[GarbageCan] nodes: List[GarbageCan]
bumps: List[SpeedBump] bumps: List[SpeedBump]