17 lines
515 B
Python
17 lines
515 B
Python
class Field:
|
|
def __init__(self, plant, rect, soil): #składa się z rośliny oraz gleby, plus koordynaty danego pola
|
|
self.plant = plant
|
|
self.rect = rect
|
|
self.soil = soil
|
|
def get_plant(self):
|
|
return self.plant
|
|
def set_plant(self, plant):
|
|
self.plant = plant
|
|
def set_rect(self, rect):
|
|
self.rect = rect
|
|
def get_rect(self):
|
|
return self.rect
|
|
def get_soil(self):
|
|
return self.soil
|
|
def set_soil(self, soil):
|
|
self.soil = soil |