From 2b10bb8650a11941f74685b05116e28ddb360eaa Mon Sep 17 00:00:00 2001 From: Pawel Felcyn Date: Sat, 22 Apr 2023 12:11:06 +0200 Subject: [PATCH] garbage can cell type --- garbageCan.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/garbageCan.py b/garbageCan.py index 8585123..782e6f3 100644 --- a/garbageCan.py +++ b/garbageCan.py @@ -1,6 +1,7 @@ from garbage import Garbage from typing import List, Tuple from gameContext import GameContext +from gridCellType import GridCellType class GarbageCan: position: Tuple[int, int] @@ -17,4 +18,5 @@ class GarbageCan: self.garbage.remove(garbage) def render(self, game_context: GameContext) -> None: - game_context.render_in_cell(self.position, "imgs/container.png") \ No newline at end of file + game_context.render_in_cell(self.position, "imgs/container.png") + game_context.grid[self.position] = GridCellType.GARBAGE_CAN \ No newline at end of file