From fa3868746adbf3c5c624c5bcf1a0dc18208c2634 Mon Sep 17 00:00:00 2001 From: Pawel Felcyn Date: Sat, 15 Apr 2023 19:37:56 +0200 Subject: [PATCH] add method for rendering can --- garbageCan.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/garbageCan.py b/garbageCan.py index 1700390..8585123 100644 --- a/garbageCan.py +++ b/garbageCan.py @@ -1,5 +1,6 @@ from garbage import Garbage from typing import List, Tuple +from gameContext import GameContext class GarbageCan: position: Tuple[int, int] @@ -13,4 +14,7 @@ class GarbageCan: self.garbage.append(garbage) def remove_garbage(self, garbage: Garbage) -> None: - self.garbage.remove(garbage) \ No newline at end of file + 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