23 lines
519 B
Python
23 lines
519 B
Python
from Event import Event
|
|
|
|
|
|
class SpecialEvent(Event):
|
|
def __init__(self, name, gameState):
|
|
super().__init__(name)
|
|
self.gameState = gameState
|
|
|
|
def replay(self):
|
|
self.gameState.currentPlayer.setReplayBall()
|
|
|
|
def extra_ball(self):
|
|
self.gameState.currentPlayer.addBall()
|
|
|
|
def points(self):
|
|
self.gameState.currentPlayer.addPoints(self.points)
|
|
|
|
def bonus_time(self):
|
|
self.gameState.currentPlayer.addBonusTimeSecond()
|
|
|
|
def super_bonus(self):
|
|
pass
|