thiiiiings

This commit is contained in:
Jonas Zeunert
2020-02-13 19:05:55 +01:00
parent 82f1ad6ed8
commit 7414734dad
719 changed files with 41551 additions and 227 deletions

9
displays/Display.py Normal file
View File

@@ -0,0 +1,9 @@
from networking.Networking import Networking
class Display:
def __init__(self, name):
self.name = name
def printScore(self, score):
Networking().write(self.name, score)

View File

@@ -0,0 +1,5 @@
from displays.Display import Display
class PlayerDisplay(Display):
def __init__(self, name):
super(name)

View File

@@ -0,0 +1,25 @@
from displays.Display import Display
class SpecialDisplay(Display):
def __init__(self, name):
super(name)
self.credits = 0
self.gameTimeBonus = 0
self.ballsToPlay = 0
def printScore(self):
super.write_score(int(str(self.credits).zfill(2)
+ str(self.gameTimeBonus).zfill(2)
+ 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()

Binary file not shown.

Binary file not shown.

Binary file not shown.