Add dummy player

This commit is contained in:
Jonas Zeunert
2022-06-06 22:20:04 +02:00
parent 33a0fd931a
commit 05a8020689
4 changed files with 27 additions and 6 deletions

View File

@@ -1,10 +1,14 @@
from config import *
from PlayerState import PlayerState
from displays.DummyDisplay import DummyDisplay
class PlayerStateFactory:
def __init__(self, specialDisplay):
self.specialDisplay = specialDisplay
def createPlayerState(self, display, id, banks):
return PlayerState(display, self.specialDisplay, id, BALLS_PER_GAME, banks)
return PlayerState(display, self.specialDisplay, id, BALLS_PER_GAME, banks)
def createDummyPlayerState(self):
display = DummyDisplay()
return PlayerState(display, display, -1, -1, None)