added field class

This commit is contained in:
dardwo 2023-03-26 14:20:58 +02:00
parent a88cb60fbd
commit f3d727cf9d

21
src/Field.py Normal file
View File

@ -0,0 +1,21 @@
from pygame.sprite import Sprite
class Field(Sprite):
def __init__(self, type, row_id, col_id, image, cost, hydration_level , soil,
fertilizer_degree, development_degree, plant_type, fertilizer_type, to_water):
self.type = type
self.row_id = row_id
self.col_id = col_id
self.position = (row_id, col_id)
self.image = image
self.cost = cost
self.hydration_level = hydration_level
self.soil = soil
self.fertilizer_degree = fertilizer_degree
self.development_degree = development_degree
self.plant_type = plant_type
self.fertilizer_type = fertilizer_type
self.to_water = to_water