SzybciorSmartTraktor/field1.py

14 lines
377 B
Python
Raw Normal View History

2022-03-24 20:35:10 +01:00
class Tile:
def init(self, type, rowPosition, colPosition, status, isChecked):
self.type = type
self.rowPosition = rowPosition
self.colPosition = colPosition
self.status = status
self.isChecked = False
def isAvaibleForHarvest(self, type):
self.type = type
def checkTile(self):
self.isChecked = True