import project_constants as consts class Mine: def __init__(self, position, mine_type, active=True): self.position = position self.mine_type = mine_type if mine_type == 'a': self.asset = consts.ASSET_MINE_A elif mine_type == 'b': self.asset = consts.ASSET_MINE_B elif mine_type == 'f': self.asset = consts.ASSET_MINE_F elif mine_type == 'k': self.asset = consts.ASSET_MINE_K else: self.asset = None self.active = active