Rewrite: Functionality to write content to special display
This commit is contained in:
@@ -5,4 +5,7 @@ class Display:
|
||||
self.name = name
|
||||
|
||||
def printScore(self, score):
|
||||
networking.writeDisplayScore(self.name, score)
|
||||
networking.writeDisplayScore(self.name, score)
|
||||
|
||||
def printContent(self, content):
|
||||
networking.writeDisplayContent(self.name, content)
|
||||
@@ -8,9 +8,9 @@ class SpecialDisplay(Display):
|
||||
self.ballsToPlay = 0
|
||||
|
||||
def printScore(self):
|
||||
super().printScore(int(str(self.credits).zfill(2)
|
||||
super().printContent(str(self.credits).zfill(2)
|
||||
+ str(self.gameTimeBonus).zfill(2)
|
||||
+ str(self.ballsToPlay).zfill(2)))
|
||||
+ str(self.ballsToPlay).zfill(2))
|
||||
|
||||
def printBallsToPlay(self, ballsToPlay):
|
||||
self.ballsToPlay = ballsToPlay
|
||||
|
||||
Reference in New Issue
Block a user