fuck super
This commit is contained in:
2
Bank.py
2
Bank.py
@@ -2,7 +2,7 @@ from Target import Target
|
|||||||
|
|
||||||
class Bank(Target):
|
class Bank(Target):
|
||||||
def __init__(self, points, name, targets):
|
def __init__(self, points, name, targets):
|
||||||
super(points, name)
|
super().__init__(points, name)
|
||||||
self.targets = targets
|
self.targets = targets
|
||||||
self.__register_targets__()
|
self.__register_targets__()
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ from Target import Target
|
|||||||
|
|
||||||
class ReboundContactTarget(Target):
|
class ReboundContactTarget(Target):
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
super(100, 'Rebound Contact')
|
super().__init__(100, 'Rebound Contact')
|
||||||
|
|
||||||
def hit(self):
|
def hit(self):
|
||||||
super.hit()
|
super.hit()
|
||||||
@@ -2,7 +2,7 @@ from Target import Target
|
|||||||
|
|
||||||
class LeftInlaneTarget(Target):
|
class LeftInlaneTarget(Target):
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
super(100, 'Left Inlane')
|
super().__init__(100, 'Left Inlane')
|
||||||
|
|
||||||
def hit(self):
|
def hit(self):
|
||||||
super.hit()
|
super.hit()
|
||||||
@@ -2,7 +2,7 @@ from Target import Target
|
|||||||
|
|
||||||
class LeftOutlaneTarget(Target):
|
class LeftOutlaneTarget(Target):
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
super(100, 'Left Outlane')
|
super().__init__(100, 'Left Outlane')
|
||||||
|
|
||||||
def hit(self):
|
def hit(self):
|
||||||
super.hit()
|
super.hit()
|
||||||
@@ -3,7 +3,7 @@ from Target import Target
|
|||||||
|
|
||||||
class RightOutlaneKickerTarget(Target):
|
class RightOutlaneKickerTarget(Target):
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
super(10000, "Right Outlane Kicker")
|
super().__init__(10000, "Right Outlane Kicker")
|
||||||
#Scores 30000, 50000 when lit and advances 1-2-3-4-5 sequence
|
#Scores 30000, 50000 when lit and advances 1-2-3-4-5 sequence
|
||||||
|
|
||||||
def hit(self):
|
def hit(self):
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ from Target import Target
|
|||||||
|
|
||||||
class RightOutlaneTarget(Target):
|
class RightOutlaneTarget(Target):
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
super(50000, "Right Outlane")
|
super().__init__(50000, "Right Outlane")
|
||||||
|
|
||||||
def hit(self):
|
def hit(self):
|
||||||
super.hit()
|
super.hit()
|
||||||
@@ -3,7 +3,7 @@ from Target import Target
|
|||||||
|
|
||||||
class CanalButtonTopTarget(Target):
|
class CanalButtonTopTarget(Target):
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
super(20000, "Canal Button Bottom")
|
super().__init__(20000, "Canal Button Bottom")
|
||||||
|
|
||||||
def hit(self):
|
def hit(self):
|
||||||
super.hit()
|
super.hit()
|
||||||
@@ -3,7 +3,7 @@ from Target import Target
|
|||||||
|
|
||||||
class LeftLaneButton4Target(Target):
|
class LeftLaneButton4Target(Target):
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
super(20000, "Canal Button Middle Bottom")
|
super().__init__(20000, "Canal Button Middle Bottom")
|
||||||
|
|
||||||
def hit(self):
|
def hit(self):
|
||||||
super.hit()
|
super.hit()
|
||||||
@@ -3,7 +3,7 @@ from Target import Target
|
|||||||
|
|
||||||
class LeftLaneButton3Target(Target):
|
class LeftLaneButton3Target(Target):
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
super(20000, "Canal Button Middle")
|
super().__init__(20000, "Canal Button Middle")
|
||||||
|
|
||||||
def hit(self):
|
def hit(self):
|
||||||
super.hit()
|
super.hit()
|
||||||
@@ -3,7 +3,7 @@ from Target import Target
|
|||||||
|
|
||||||
class LeftLaneButton2Target(Target):
|
class LeftLaneButton2Target(Target):
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
super(20000, "Canal Button Middle Top")
|
super().__init__(20000, "Canal Button Middle Top")
|
||||||
|
|
||||||
def hit(self):
|
def hit(self):
|
||||||
super.hit()
|
super.hit()
|
||||||
@@ -2,7 +2,7 @@ from Target import Target
|
|||||||
|
|
||||||
class LeftLaneButton1Target(Target):
|
class LeftLaneButton1Target(Target):
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
super(100, 'Left Lane Button #1')
|
super().__init__(100, 'Left Lane Button #1')
|
||||||
|
|
||||||
def hit(self):
|
def hit(self):
|
||||||
super.hit()
|
super.hit()
|
||||||
@@ -3,7 +3,7 @@ from Target import Target
|
|||||||
|
|
||||||
class FixedTarget1(Target):
|
class FixedTarget1(Target):
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
super(0, "Fixed Target 1")
|
super().__init__(0, "Fixed Target 1")
|
||||||
|
|
||||||
def hit(self):
|
def hit(self):
|
||||||
super.hit()
|
super.hit()
|
||||||
@@ -3,7 +3,7 @@ from Target import Target
|
|||||||
|
|
||||||
class FixedTarget2(Target):
|
class FixedTarget2(Target):
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
super(0, "Fixed Target 2")
|
super().__init__(0, "Fixed Target 2")
|
||||||
|
|
||||||
def hit(self):
|
def hit(self):
|
||||||
super.hit()
|
super.hit()
|
||||||
@@ -2,7 +2,7 @@ from Target import Target
|
|||||||
|
|
||||||
class FixedTarget3(Target):
|
class FixedTarget3(Target):
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
super(100, 'Fixed Target 3')
|
super().__init__(100, 'Fixed Target 3')
|
||||||
|
|
||||||
def hit(self):
|
def hit(self):
|
||||||
super.hit()
|
super.hit()
|
||||||
@@ -3,7 +3,7 @@ from Target import Target
|
|||||||
|
|
||||||
class FixedTarget4(Target):
|
class FixedTarget4(Target):
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
super(100, 'Fixed Target 4')
|
super().__init__(100, 'Fixed Target 4')
|
||||||
|
|
||||||
def hit(self):
|
def hit(self):
|
||||||
super.hit()
|
super.hit()
|
||||||
@@ -3,7 +3,7 @@ from Target import Target
|
|||||||
|
|
||||||
class FixedTarget5(Target):
|
class FixedTarget5(Target):
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
super(100, 'Fixed Target 5')
|
super().__init__(100, 'Fixed Target 5')
|
||||||
|
|
||||||
def hit(self):
|
def hit(self):
|
||||||
super.hit()
|
super.hit()
|
||||||
@@ -3,7 +3,7 @@ from BankTarget import BankTarget
|
|||||||
|
|
||||||
class LeftBankLeft(BankTarget):
|
class LeftBankLeft(BankTarget):
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
super(100, 'Left Bank Left')
|
super().__init__(100, 'Left Bank Left')
|
||||||
|
|
||||||
def hit(self):
|
def hit(self):
|
||||||
super.hit()
|
super.hit()
|
||||||
@@ -3,7 +3,7 @@ from BankTarget import BankTarget
|
|||||||
|
|
||||||
class LeftBankMiddleLeft(BankTarget):
|
class LeftBankMiddleLeft(BankTarget):
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
super(100, 'Left Bank Middle Left')
|
super().__init__(100, 'Left Bank Middle Left')
|
||||||
|
|
||||||
def hit(self):
|
def hit(self):
|
||||||
super.hit()
|
super.hit()
|
||||||
@@ -3,7 +3,7 @@ from BankTarget import BankTarget
|
|||||||
|
|
||||||
class LeftBankMiddleRight(BankTarget):
|
class LeftBankMiddleRight(BankTarget):
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
super(100, 'Left Bank Middle Right')
|
super().__init__(100, 'Left Bank Middle Right')
|
||||||
|
|
||||||
def hit(self):
|
def hit(self):
|
||||||
super.hit()
|
super.hit()
|
||||||
@@ -3,7 +3,7 @@ from Target import Target
|
|||||||
|
|
||||||
class LeftBankLeft(Target):
|
class LeftBankLeft(Target):
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
super(100, 'Left Bank Right')
|
super().__init__(100, 'Left Bank Right')
|
||||||
|
|
||||||
def hit(self):
|
def hit(self):
|
||||||
super.hit()
|
super.hit()
|
||||||
@@ -3,7 +3,7 @@ from Target import Target
|
|||||||
|
|
||||||
class LeftPopTarget(Target):
|
class LeftPopTarget(Target):
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
super(0, "Left Pop")
|
super().__init__(0, "Left Pop")
|
||||||
|
|
||||||
def hit(self):
|
def hit(self):
|
||||||
super.hit()
|
super.hit()
|
||||||
@@ -3,7 +3,7 @@ from Target import Target
|
|||||||
|
|
||||||
class RightPopTarget(Target):
|
class RightPopTarget(Target):
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
super(100, 'Right Pop')
|
super().__init__(100, 'Right Pop')
|
||||||
|
|
||||||
def hit(self):
|
def hit(self):
|
||||||
super.hit()
|
super.hit()
|
||||||
@@ -6,7 +6,7 @@ from targets.right_bank import RightBankRight
|
|||||||
class RightBank(Bank):
|
class RightBank(Bank):
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
targets = [RightBankLeft(), RightBankMiddle(), RightBankRight]
|
targets = [RightBankLeft(), RightBankMiddle(), RightBankRight]
|
||||||
super(0, "Right Bank", targets)
|
super().__init__(0, "Right Bank", targets)
|
||||||
|
|
||||||
def hit(self):
|
def hit(self):
|
||||||
super.hit()
|
super.hit()
|
||||||
@@ -3,7 +3,7 @@ from BankTarget import BankTarget
|
|||||||
|
|
||||||
class RightBankLeft(BankTarget):
|
class RightBankLeft(BankTarget):
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
super(100, "Right Bank Left")
|
super().__init__(100, "Right Bank Left")
|
||||||
|
|
||||||
def hit(self):
|
def hit(self):
|
||||||
super.hit()
|
super.hit()
|
||||||
@@ -3,7 +3,7 @@ from BankTarget import BankTarget
|
|||||||
|
|
||||||
class MiddleDropTarget(BankTarget):
|
class MiddleDropTarget(BankTarget):
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
super(100, 'Right Bank Middle')
|
super().__init__(100, 'Right Bank Middle')
|
||||||
|
|
||||||
def hit(self):
|
def hit(self):
|
||||||
super.hit()
|
super.hit()
|
||||||
@@ -3,7 +3,7 @@ from BankTarget import BankTarget
|
|||||||
|
|
||||||
class RightBankRight(BankTarget):
|
class RightBankRight(BankTarget):
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
super(100, "Right Bank Right")
|
super().__init__(100, "Right Bank Right")
|
||||||
|
|
||||||
def hit(self):
|
def hit(self):
|
||||||
super.hit()
|
super.hit()
|
||||||
@@ -2,7 +2,7 @@ from Target import Target
|
|||||||
|
|
||||||
class LeftSlingshotTarget(Target):
|
class LeftSlingshotTarget(Target):
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
super(100, 'Left Slingshot')
|
super().__init__(100, 'Left Slingshot')
|
||||||
|
|
||||||
def hit(self):
|
def hit(self):
|
||||||
super.hit()
|
super.hit()
|
||||||
@@ -3,7 +3,7 @@ from Target import Target
|
|||||||
|
|
||||||
class RightSlingshotTarget(Target):
|
class RightSlingshotTarget(Target):
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
super(10, "Right Slingshot")
|
super().__init__(10, "Right Slingshot")
|
||||||
|
|
||||||
def hit(self):
|
def hit(self):
|
||||||
super.hit()
|
super.hit()
|
||||||
@@ -6,7 +6,7 @@ from Target import Target
|
|||||||
# points. Scores 100,000 points when not lit.
|
# points. Scores 100,000 points when not lit.
|
||||||
class FixedSpecialOrangeTarget(Target):
|
class FixedSpecialOrangeTarget(Target):
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
super(100000, "Special Orange")
|
super().__init__(100000, "Special Orange")
|
||||||
|
|
||||||
def hit(self):
|
def hit(self):
|
||||||
super.hit()
|
super.hit()
|
||||||
@@ -6,7 +6,7 @@ from Target import Target
|
|||||||
class FixedSpecialRedTarget(Target):
|
class FixedSpecialRedTarget(Target):
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
logging.info("test")
|
logging.info("test")
|
||||||
super(10000, "Special Red")
|
super().__init__(10000, "Special Red")
|
||||||
|
|
||||||
def hit(self):
|
def hit(self):
|
||||||
super.hit()
|
super.hit()
|
||||||
@@ -2,7 +2,7 @@ from Target import Target
|
|||||||
|
|
||||||
class SpinnerTarget(Target):
|
class SpinnerTarget(Target):
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
super(100, 'Spinner')
|
super().__init__(100, 'Spinner')
|
||||||
|
|
||||||
def hit(self):
|
def hit(self):
|
||||||
super.hit()
|
super.hit()
|
||||||
@@ -3,7 +3,7 @@ from Target import Target
|
|||||||
|
|
||||||
class CreditTarget(Target):
|
class CreditTarget(Target):
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
super(0, 'Credit')
|
super().__init__(0, 'Credit')
|
||||||
|
|
||||||
def hit(self):
|
def hit(self):
|
||||||
super.hit()
|
super.hit()
|
||||||
@@ -2,7 +2,7 @@ from Target import Target
|
|||||||
|
|
||||||
class OutholeTarget(Target):
|
class OutholeTarget(Target):
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
super(100, 'Outhole')
|
super().__init__(100, 'Outhole')
|
||||||
|
|
||||||
def hit(self):
|
def hit(self):
|
||||||
super.hit()
|
super.hit()
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ from Target import Target
|
|||||||
|
|
||||||
class RisingBall(Target):
|
class RisingBall(Target):
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
super(0, "Rising Ball")
|
super().__init__(0, "Rising Ball")
|
||||||
|
|
||||||
def hit(self):
|
def hit(self):
|
||||||
super.hit()
|
super.hit()
|
||||||
@@ -3,7 +3,7 @@ from BankTarget import BankTarget
|
|||||||
|
|
||||||
class TopBankLeft(BankTarget):
|
class TopBankLeft(BankTarget):
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
super(100, 'Top Bank Left')
|
super().__init__(100, 'Top Bank Left')
|
||||||
|
|
||||||
def hit(self):
|
def hit(self):
|
||||||
super.hit()
|
super.hit()
|
||||||
@@ -3,7 +3,7 @@ from BankTarget import BankTarget
|
|||||||
|
|
||||||
class TopBankMiddle(BankTarget):
|
class TopBankMiddle(BankTarget):
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
super(100, "Top Bank Middle")
|
super().__init__(100, "Top Bank Middle")
|
||||||
|
|
||||||
def hit(self):
|
def hit(self):
|
||||||
super.hit()
|
super.hit()
|
||||||
@@ -3,7 +3,7 @@ from BankTarget import BankTarget
|
|||||||
|
|
||||||
class TopBankMiddleLeft(BankTarget):
|
class TopBankMiddleLeft(BankTarget):
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
super(100, "Top Bank Middle Left")
|
super().__init__(100, "Top Bank Middle Left")
|
||||||
|
|
||||||
def hit(self):
|
def hit(self):
|
||||||
super.hit()
|
super.hit()
|
||||||
@@ -3,7 +3,7 @@ import logging
|
|||||||
|
|
||||||
class TopBankMiddleRight(BankTarget):
|
class TopBankMiddleRight(BankTarget):
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
super(100, "Top Bank Middle Right")
|
super().__init__(100, "Top Bank Middle Right")
|
||||||
|
|
||||||
def hit(self):
|
def hit(self):
|
||||||
super.hit()
|
super.hit()
|
||||||
@@ -3,7 +3,7 @@ from BankTarget import BankTarget
|
|||||||
|
|
||||||
class TopBankRight(BankTarget):
|
class TopBankRight(BankTarget):
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
super(100000, "Top Bank Right")
|
super().__init__(100000, "Top Bank Right")
|
||||||
|
|
||||||
def hit(self):
|
def hit(self):
|
||||||
super.hit()
|
super.hit()
|
||||||
Reference in New Issue
Block a user