Projekt_Sztuczna_Inteligencja/mine.py

21 lines
552 B
Python
Raw Normal View History

2021-03-12 11:49:19 +01:00
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