Add field class #11
13
field1.py
Normal file
13
field1.py
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
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
|
Loading…
Reference in New Issue
Block a user