create input functionality

This commit is contained in:
Jonas Zeunert
2019-10-30 21:37:16 +01:00
parent be7b72244a
commit bdba9fc7c3
5 changed files with 124 additions and 1 deletions

10
cli/Target.py Normal file
View File

@@ -0,0 +1,10 @@
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)