17 lines
341 B
Python
17 lines
341 B
Python
from Target import Target
|
|
|
|
class BankTarget(Target):
|
|
def __init__(self, points, name):
|
|
super().__init__(points, name)
|
|
self.is_hit = False
|
|
|
|
def hit(self):
|
|
if self.is_hit:
|
|
return
|
|
|
|
self.is_hit = True
|
|
super().hit()
|
|
#notify Bank
|
|
|
|
def reset(self):
|
|
self.is_hit = False |