2021-03-29 02:19:55 +02:00
|
|
|
class Field:
|
|
|
|
def __init__(self, __horizontal, __vertical, __state):
|
|
|
|
self.horizontal = __horizontal
|
|
|
|
self.vertical = __vertical
|
|
|
|
self.__state = __state
|
|
|
|
|
|
|
|
@property
|
|
|
|
def state(self):
|
|
|
|
return self.__state
|
|
|
|
|
|
|
|
@state.setter
|
|
|
|
def state(self, state):
|
2021-03-29 13:32:51 +02:00
|
|
|
if state == "toPlow" or state == "toWater" or state == "toSeed" or state == "toFertilize" or state == "toCut":
|
2021-03-29 02:53:27 +02:00
|
|
|
self.__state = state
|