bla
This commit is contained in:
@@ -3,14 +3,13 @@ from PlayerState import PlayerState
|
||||
from displays.DummyDisplay import DummyDisplay
|
||||
|
||||
class PlayerStateFactory:
|
||||
def __init__(self, specialDisplay, banks, displayFactory):
|
||||
def __init__(self, specialDisplay, banks, displays):
|
||||
self.specialDisplay = specialDisplay
|
||||
self.banks = banks
|
||||
self.displayFactory = displayFactory
|
||||
self.displays = displays
|
||||
|
||||
def createPlayerState(self, id):
|
||||
display = self.displayFactory.createPlayerDisplay(id)
|
||||
return PlayerState(display, self.specialDisplay, id, BALLS_PER_GAME, self.banks)
|
||||
return PlayerState(self.displays[id], self.specialDisplay, id, BALLS_PER_GAME, self.banks)
|
||||
|
||||
def createDummyPlayerState(self):
|
||||
display = DummyDisplay()
|
||||
|
||||
Reference in New Issue
Block a user