SzybciorSmartTraktor/field1.py

14 lines
389 B
Python
Raw Permalink Normal View History

2022-03-24 20:35:10 +01:00
class Tile:
2022-05-12 21:49:22 +02:00
def init(self, type, row_position, col_position, status, is_checked):
2022-03-24 20:35:10 +01:00
self.type = type
2022-05-12 21:49:22 +02:00
self.row_position = row_position
self.col_position = col_position
2022-03-24 20:35:10 +01:00
self.status = status
2022-05-12 21:49:22 +02:00
self.is_checked = False
2022-03-24 20:35:10 +01:00
2022-05-12 21:49:22 +02:00
def is_avaible_for_harvest(self, type):
2022-03-24 20:35:10 +01:00
self.type = type
2022-05-12 21:49:22 +02:00
def check_tile(self):
2022-03-24 20:35:10 +01:00
self.isChecked = True