Add dummy player
This commit is contained in:
@@ -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)
|
||||
Reference in New Issue
Block a user