Files
flippr-game/displays/SpecialDisplay.py
2022-06-06 18:31:31 +02:00

26 lines
752 B
Python

from displays.Display import Display
class SpecialDisplay(Display):
def __init__(self, name):
super().__init__(name)
self.credits = 0
self.gameTimeBonus = 0
self.ballsToPlay = 0
def printScore(self):
super().printContent(str(self.credits).zfill(3)
+ str(self.gameTimeBonus).zfill(3)
+ str(self.ballsToPlay).zfill(2))
def printBallsToPlay(self, ballsToPlay):
self.ballsToPlay = ballsToPlay
self.printScore()
def printGameTimeBonus(self, gameTimeBonus):
self.gameTimeBonus = gameTimeBonus
self.printScore()
def printCredits(self, credits):
self.credits = credits
self.printScore()