14 lines
484 B
Python
14 lines
484 B
Python
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)
|
|
|
|
def createDummyPlayerState(self):
|
|
display = DummyDisplay()
|
|
return PlayerState(display, display, -1, -1, None) |