asdf
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
from networking.Networking import Networking
|
||||
|
||||
class Lamp:
|
||||
def __init__(self, name):
|
||||
self.name = name
|
||||
|
||||
def activate(self):
|
||||
Networking().activateLamp(self)
|
||||
|
||||
def deactivate(self):
|
||||
Networking().deactivateLamp()
|
||||
|
||||
def isActivated(self):
|
||||
Networking().getLamps(self)
|
||||
|
||||
|
||||
@@ -0,0 +1,74 @@
|
||||
from lamps.Lamp import Lamp
|
||||
class LampGroup:
|
||||
def __init__(self, lamps):
|
||||
self.lamps = lamps
|
||||
self.currentLamp = 0
|
||||
self.deactivate()
|
||||
|
||||
def activate(self):
|
||||
for lamp in self.lamps:
|
||||
lamp.activate()
|
||||
|
||||
def deactivate(self):
|
||||
for lamp in self.lamps:
|
||||
lamp.deactivate()
|
||||
|
||||
def activateNext(self):
|
||||
self.lamps[self.currentLamp].activate()
|
||||
|
||||
if self.currentLamp == len(self.lamps):
|
||||
return
|
||||
|
||||
self.currentLamp += 1
|
||||
|
||||
def deactivateCurrent(self):
|
||||
self.lamps[self.currentLamp].deactivate()
|
||||
|
||||
if self.currentLamp == 0:
|
||||
return
|
||||
|
||||
self.currentLamp -= 1
|
||||
|
||||
CHAMP_LAMPS = LampGroup([
|
||||
Lamp("C Of Champ"),
|
||||
Lamp("H Of Champ"),
|
||||
Lamp("A Of Champ"),
|
||||
Lamp("M Of Champ"),
|
||||
Lamp("P Of Champ")
|
||||
])
|
||||
|
||||
UPPER_PLAYFIELD_TIME_LAMPS = LampGroup([
|
||||
Lamp("Lamp 5 Sec"),
|
||||
Lamp("Lamp 10 Sec"),
|
||||
Lamp("Lamp 20 Sec"),
|
||||
Lamp("Lamp 30 Sec")
|
||||
])
|
||||
|
||||
BONUS_MULTIPLIER_LAMPS = LampGroup([
|
||||
Lamp("Bonus Multiplier x10"),
|
||||
Lamp("Bonus Multiplier x20"),
|
||||
Lamp("Bonus Multiplier x50")
|
||||
])
|
||||
|
||||
BONUS_LAMPS = LampGroup([
|
||||
Lamp("Bonus 1000"),
|
||||
Lamp("Bonus 2000"),
|
||||
Lamp("Bonus 3000"),
|
||||
Lamp("Bonus 4000"),
|
||||
Lamp("Bonus 5000"),
|
||||
Lamp("Bonus 6000"),
|
||||
Lamp("Bonus 7000"),
|
||||
Lamp("Bonus 8000"),
|
||||
Lamp("Bonus 9000"),
|
||||
Lamp("Bonus 10000"),
|
||||
Lamp("Bonus 11000"),
|
||||
Lamp("Bonus 12000"),
|
||||
Lamp("Bonus 13000"),
|
||||
Lamp("Bonus 14000"),
|
||||
Lamp("Bonus 15000"),
|
||||
Lamp("Bonus 16000"),
|
||||
Lamp("Bonus 17000"),
|
||||
Lamp("Bonus 18000"),
|
||||
Lamp("Bonus 19000"),
|
||||
Lamp("Bonus 20000")
|
||||
])
|
||||
|
||||
Reference in New Issue
Block a user