From 45345cabd8c0d32917a65dde8931c6c92c64fbe8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Czeka=C5=84ski?= Date: Sun, 24 May 2020 15:46:25 +0200 Subject: [PATCH] Add method returning description of DT interactable --- .../DTEntities/DTSurvivalInteractable.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/AI/DecisionTrees/projectSpecificClasses/DTEntities/DTSurvivalInteractable.py b/src/AI/DecisionTrees/projectSpecificClasses/DTEntities/DTSurvivalInteractable.py index b5a8708..de037d0 100644 --- a/src/AI/DecisionTrees/projectSpecificClasses/DTEntities/DTSurvivalInteractable.py +++ b/src/AI/DecisionTrees/projectSpecificClasses/DTEntities/DTSurvivalInteractable.py @@ -39,3 +39,7 @@ class DTSurvivalInteractable: return None return DTSurvivalInteractable(distanceFromPlayer, classification, interactable) + + def getDescription(self): + dsc = "Classification: {}, Distance from player: {}".format(self.classification, self.distanceFromPlayer) + return dsc