From 454e0ac87d207d8947ccc2f6e34fcb77384e875f Mon Sep 17 00:00:00 2001 From: Marcin Kostrzewski Date: Sat, 16 May 2020 10:01:47 +0200 Subject: [PATCH] __str__ prints classifiers --- src/entities/Interactable.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/entities/Interactable.py b/src/entities/Interactable.py index a49dda6..60a0b5d 100644 --- a/src/entities/Interactable.py +++ b/src/entities/Interactable.py @@ -27,3 +27,6 @@ class Interactable(Entity): Player.statistics.set_stamina(self.Statistics.stamina) Player.statistics.set_thirst(self.Statistics.thirst) Player.statistics.set_hunger(self.Statistics.hunger) + + def __str__(self): + return "Entity - ID:{}, pos:({}x, {}y), {}".format(self.id, self.x, self.y, self.classifier)