add: Print to special disp

This commit is contained in:
Jonas Zeunert
2022-06-06 19:00:49 +02:00
parent b362442bb8
commit 3185efd0c6
3 changed files with 12 additions and 5 deletions

View File

@@ -15,11 +15,11 @@ class GameFactory:
def __init__(self):
displayNames = networking.getDisplays()['displays']
self.displayFactory = DisplayFactory(displayNames)
specialDisplay = self.displayFactory.createSpecialDisplay()
self.specialDisplay = self.displayFactory.createSpecialDisplay()
self.playerCount = len(displayNames)
self.gameStateFactory = PlayerStateFactory(specialDisplay)
self.gameStateFactory = PlayerStateFactory(self.specialDisplay)
def createGame(self):
@@ -29,7 +29,7 @@ class GameFactory:
banks = [targets['Left Bank'], targets['Right Bank'], targets['Top Bank']]
players = self.createPlayers(banks)
gameState = GameState(players, self.getHighScore(), players[0].id)
gameState = GameState(players, self.getHighScore(), self.specialDisplay, players[0].id)
eventFactory = EventFactory(targets, gameState)
events = eventFactory.allEvents()