This commit is contained in:
Jonas Zeunert
2022-06-02 21:28:44 +02:00
parent 3d2008dc4d
commit cfdcbcb5bd
17 changed files with 28 additions and 28 deletions

View File

@@ -2,10 +2,10 @@ from Event import Event
class PointEvent(Event):
def __init__(self, playerState):
self.gameState = playerState
def __init__(self, gameState):
self.gameState = gameState
super().__init__("Point Event")
def trigger(self, target):
super().trigger(target)
self.gameState.addPoints(target.points)
self.gameState.currentPlayer.addPoints(target.points)