from config import * class Tile: def __init__(self, a, b, pos, parent=None): self.ground = a self.object = b self.pos = pos self.x = self.pos[0] self.y = self.pos[1] self.w = 100 self.wu = 0 self.f = "OK" def water_usage(self): if self.object == rose: self.wu = 30 elif self.object == tulip: self.wu = 10 elif self.object == orchid: self.wu = 20 elif self.object == sunflower: self.wu = 40