Merge branch 'master' of gitlab.rhetenor.de:rhetenor/flippr-game

This commit is contained in:
Johannes Wendel
2020-08-19 22:13:46 +02:00
4 changed files with 35 additions and 0 deletions

11
events/BankEvent.py Normal file
View File

@@ -0,0 +1,11 @@
from Event import Event
class BankEvent(Event):
def __init__(self, bankSolenoid, name):
self.bankSolenoid = bankSolenoid
super().__init__(name)
def trigger(self, _):
super().trigger()
self.bankSolenoid.trigger()

View File

@@ -0,0 +1,8 @@
from events.BankEvent import BankEvent
from solenoids.BottomLeftBankSolenoid import BottomLeftBankSolenoid
class BottomLeftBankEvent(BankEvent):
def __init__(self):
super().__init__(BottomLeftBankSolenoid(), "Bottom Left Bank Event")

View File

@@ -0,0 +1,8 @@
from events.BankEvent import BankEvent
from solenoids.BottomRightBankSolenoid import BottomRightBankSolenoid
class BottomRightBankEvent(BankEvent):
def __init__(self):
super().__init__(BottomRightBankSolenoid(), "Bottom Right Bank Event")

View File

@@ -0,0 +1,8 @@
from events.BankEvent import BankEvent
from solenoids.TopCentralBankSolenoid import TopCentralBankSolenoid
class TopCentralBankEvent(BankEvent):
def __init__(self):
super().__init__(TopCentralBankSolenoid(), "Top Central Bank Event")