Added Pop Events
This commit is contained in:
11
events/PopEvent.py
Normal file
11
events/PopEvent.py
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
from Event import Event
|
||||||
|
|
||||||
|
|
||||||
|
class PopEvent(Event):
|
||||||
|
def __init__(self, popSolenoid, name):
|
||||||
|
self.popSolenoid = popSolenoid
|
||||||
|
super().__init__(name)
|
||||||
|
|
||||||
|
def trigger(self, _):
|
||||||
|
super().trigger()
|
||||||
|
self.popSolenoid.trigger()
|
||||||
7
events/TopLeftPopEvent.py
Normal file
7
events/TopLeftPopEvent.py
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
from events.PopEvent import PopEvent
|
||||||
|
from solenoids.TopLeftPopSolenoid import TopLeftPopSolenoid
|
||||||
|
|
||||||
|
|
||||||
|
class TopLeftPopEvent(PopEvent):
|
||||||
|
def __init__(self):
|
||||||
|
super().__init__(TopLeftPopSolenoid(), "Top Left Pop Event")
|
||||||
7
events/TopRightPopEvent.py
Normal file
7
events/TopRightPopEvent.py
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
from events.PopEvent import PopEvent
|
||||||
|
from solenoids.TopRightPopSolenoid import TopRightPopSolenoid
|
||||||
|
|
||||||
|
|
||||||
|
class TopRightPopEvent(PopEvent):
|
||||||
|
def __init__(self):
|
||||||
|
super().__init__(TopRightPopSolenoid(), "Top Right Pop Event")
|
||||||
4
solenoids/TopRightPopSolenoid.py
Normal file
4
solenoids/TopRightPopSolenoid.py
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
from Solenoid import Solenoid
|
||||||
|
|
||||||
|
class TopRightPopSolenoid(Solenoid):
|
||||||
|
pass
|
||||||
Reference in New Issue
Block a user