__str__ prints classifiers

This commit is contained in:
Marcin Kostrzewski 2020-05-16 10:01:47 +02:00
parent fa1fe48abb
commit 454e0ac87d

View File

@ -27,3 +27,6 @@ class Interactable(Entity):
Player.statistics.set_stamina(self.Statistics.stamina) Player.statistics.set_stamina(self.Statistics.stamina)
Player.statistics.set_thirst(self.Statistics.thirst) Player.statistics.set_thirst(self.Statistics.thirst)
Player.statistics.set_hunger(self.Statistics.hunger) 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)