AI_PRO/TractorLoad.py

13 lines
309 B
Python
Raw Normal View History

2021-03-29 14:33:16 +02:00
class TillageUnit:
2021-03-29 01:24:28 +02:00
def __init__(self, __load):
self.__load = __load
@property
def load(self):
return self.__load
@load.setter
def load(self, load):
2021-03-29 14:33:16 +02:00
if load == "Fertilizer" or load == "Seeds" or load == "Water" or load == "Nothing":
2021-03-29 01:24:28 +02:00
self.__load = load