Random dunno

This commit is contained in:
Jonas Zeunert
2022-06-02 21:22:03 +02:00
parent 65873496f6
commit 3d2008dc4d
21 changed files with 72 additions and 72 deletions

View File

@@ -19,7 +19,7 @@ class GameFactory:
self.playerCount = len(displayNames) - 1
self.playerStateFactory = PlayerStateFactory(specialDisplay)
self.gameStateFactory = PlayerStateFactory(specialDisplay)
def createGame(self):
@@ -31,7 +31,7 @@ class GameFactory:
gameState = GameState(players, self.getHighScore(), players[0].id)
eventFactory = EventFactory(targets, gameState.currentPlayer.fset)
eventFactory = EventFactory(targets, gameState)
events = eventFactory.allEvents()
return Game(inputHandler, gameState, events)
@@ -40,7 +40,7 @@ class GameFactory:
players = []
for id in range(1, self.playerCount):
display = self.displayFactory.createPlayerDisplay(id)
player = self.playerStateFactory.createPlayerState(display, id, banks)
player = self.gameStateFactory.createPlayerState(display, id, banks)
players.append(player)
return players