AI_PRO/Field.py
secret_dude 09eb0bbc2f V1.34
2021-03-30 00:54:29 +02:00

16 lines
509 B
Python

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):
if state == "toPlow" or state == "toWater" or state == "toSeed" or \
state == "toFertilize" or state == "toCut" or state == "TOOLS_FIELD" or state == "FUEL_FIELD":
self.__state = state