From b1b3d505ff0eaeb1b953f4151500fc11607fdbfa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dominik=20Ma=C5=82yszka?= Date: Sun, 5 Apr 2020 17:31:18 +0000 Subject: [PATCH] Zaktualizuj 'plant.py' skomentowanie metody dodajacej i pobierajacej wspolrzedne --- plant.py | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/plant.py b/plant.py index 7155c3b..776c94a 100644 --- a/plant.py +++ b/plant.py @@ -22,14 +22,15 @@ class Plant: def collect(self): pass - #nadajemy współrzędne roślince - def add_coordinates(self, x, y): - self._x = x - self._y = y + ##to niepotrzebne, bo współrzedne beda w glebie + ##nadajemy współrzędne roślince + ##def add_coordinates(self, x, y): + ## self._x = x + ## self._y = y - #pobieramy współrzędne roślinki - def get_coordinates(self): - return self._x, self._y + ##pobieramy współrzędne roślinki + ##def get_coordinates(self): + ## return self._x, self._y #pobieramy id roślinki def get_id(self):