28 lines
606 B
Python
28 lines
606 B
Python
from __main__ import networking
|
|
|
|
class Lamp:
|
|
def __init__(self, name):
|
|
self.name = name
|
|
|
|
def activate(self):
|
|
networking.activateLamp(self)
|
|
|
|
def deactivate(self):
|
|
networking.deactivateLamp(self)
|
|
|
|
def isActivated(self):
|
|
networking.getLamps(self)
|
|
|
|
CREDIT = Lamp('Credit')
|
|
SHOOT_AGAIN = Lamp('Ball')
|
|
|
|
HIGHSCORE = Lamp('Highest Score')
|
|
GAMEOVER = Lamp('Game Over')
|
|
TILT = Lamp('Tilt')
|
|
MATCH = Lamp ('Match')
|
|
BALL_TO_PLAY = Lamp('Ball To Play')
|
|
UP = Lamp('UP')
|
|
DOWN = Lamp('Down')
|
|
BALL = Lamp('Ball')
|
|
MAN = Lamp('Man Speech Lamp')
|
|
WOMAN = Lamp('Woman Speech Lamp') |