Add bank events
This commit is contained in:
11
events/BankEvent.py
Normal file
11
events/BankEvent.py
Normal 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()
|
||||
8
events/BottomLeftBankEvent.py
Normal file
8
events/BottomLeftBankEvent.py
Normal 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")
|
||||
|
||||
8
events/BottomRightBankEvent.py
Normal file
8
events/BottomRightBankEvent.py
Normal 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")
|
||||
|
||||
8
events/TopCentralBankEvent.py
Normal file
8
events/TopCentralBankEvent.py
Normal 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")
|
||||
|
||||
Reference in New Issue
Block a user