#NEWLINE# def __init__( self , machine , name , config , collection = None , validate = True ) : #NEWLINE# #INDENT# super ( ScoreReelGroup , self ) . __init__ ( machine , name , config , collection , validate = validate ) #NEWLINE# self . wait_for_valid_queue = None #NEWLINE# self . valid = True #NEWLINE# self . lit = False #NEWLINE# self . unlight_on_resync_key = None #NEWLINE# self . light_on_valid_key = None #NEWLINE# self . reels = [ ] #NEWLINE# self . desired_value_list = [ ] #NEWLINE# self . reset_pulses_per_round = 5 #NEWLINE# self . advance_queue = deque ( ) #NEWLINE# self . jump_in_progress = False #NEWLINE# for reel in self . config [ 'reels' ] : #NEWLINE# #INDENT# if reel : #NEWLINE# #INDENT# reel = self . machine . score_reels [ reel ] #NEWLINE# #UNINDENT# self . reels . append ( reel ) #NEWLINE# #UNINDENT# self . reels . reverse ( ) #NEWLINE# self . config [ 'chimes' ] . reverse ( ) #NEWLINE# for i in range ( len ( self . config [ 'chimes' ] ) ) : #NEWLINE# #INDENT# if self . config [ 'chimes' ] [ i ] : #NEWLINE# #INDENT# self . machine . events . add_handler ( event = ( ( 'reel_' + self . reels [ i ] . name ) + '_advance' ) , handler = self . chime , chime = self . config [ 'chimes' ] [ i ] ) #NEWLINE# #UNINDENT# #UNINDENT# self . machine . events . add_handler ( 'init_phase_4' , self . initialize ) #NEWLINE# self . machine . events . add_handler ( 'timer_tick' , self . tick ) #NEWLINE# self . machine . events . add_handler ( 'ball_ending' , self . _ball_ending , 900 )