created eventhandler

This commit is contained in:
Jonas Zeunert
2020-01-30 21:12:02 +01:00
parent 9920c39d71
commit a660ad87b7
40 changed files with 75 additions and 37 deletions

View File

@@ -1,13 +0,0 @@
from observable import Observable
class Target(Observable):
def __init__(self, points, name):
self.points = points
self.name = name
self.hit_key = "hit"
def hit(self):
#notify Observers
#notify Gamestate
self.trigger(self.hit_key, self)