SprytnyTraktor/field.py

17 lines
515 B
Python
Raw Normal View History

2021-03-21 12:40:13 +01:00
class Field:
2021-04-03 11:24:39 +02:00
def __init__(self, plant, rect, soil): #składa się z rośliny oraz gleby, plus koordynaty danego pola
2021-03-21 12:40:13 +01:00
self.plant = plant
2021-03-21 15:17:34 +01:00
self.rect = rect
2021-03-21 12:40:13 +01:00
self.soil = soil
def get_plant(self):
return self.plant
def set_plant(self, plant):
self.plant = plant
2021-03-21 15:17:34 +01:00
def set_rect(self, rect):
self.rect = rect
def get_rect(self):
return self.rect
2021-03-21 12:40:13 +01:00
def get_soil(self):
return self.soil
def set_soil(self, soil):
self.soil = soil