project part 2 implementation
This commit is contained in:
parent
699494d68a
commit
111d99046b
40
super_mine.py
Normal file
40
super_mine.py
Normal file
@ -0,0 +1,40 @@
|
||||
from abc import ABC, abstractmethod
|
||||
|
||||
from typing import Tuple
|
||||
|
||||
class SuperMine:
|
||||
@abstractmethod
|
||||
def __init__(self, position: Tuple[int, int], state, danger_level, striking_distanse, active):
|
||||
self.position = position
|
||||
self.state = state
|
||||
self.danger_level = danger_level
|
||||
self.striking_distanse = striking_distanse
|
||||
self.active = active
|
||||
|
||||
|
||||
@abstractmethod
|
||||
def disarm(self):
|
||||
pass
|
||||
|
||||
|
||||
class Bomb:
|
||||
def __init__(self, position, state, danger_level, striking_distanse, active):
|
||||
super().__init__(position, state, danger_level, striking_distanse, active)
|
||||
|
||||
def disarm(self):
|
||||
pass
|
||||
|
||||
class Grenade:
|
||||
def __init__(self, position, state, danger_level, striking_distanse, active):
|
||||
super().__init__(position, state, danger_level, striking_distanse, active)
|
||||
|
||||
def disarm(self):
|
||||
pass
|
||||
|
||||
class Mine:
|
||||
def __init__(self, position, state, danger_level, striking_distanse, active):
|
||||
super().__init__(position, state, danger_level, striking_distanse, active)
|
||||
|
||||
def disarm(self):
|
||||
pass
|
||||
|
Loading…
Reference in New Issue
Block a user