#NEWLINE# def game_starting( self , queue , game ) : #NEWLINE# #INDENT# "Resets the score reels when a new game starts.\n\n        This is a queue event so it doesn't allow the game start to continue\n        until it's done.\n\n        Args:\n            queue: A reference to the queue object for the game starting event.\n            game: A reference to the main game object. This is ignored and only\n                included because the game_starting event passes it.\n        " #NEWLINE# self . queue = queue #NEWLINE# self . queue . wait ( ) #NEWLINE# self . reset_queue = [ ] #NEWLINE# for ( player , score_reel_group ) in self . machine . score_reel_groups . iteritems ( ) : #NEWLINE# #INDENT# self . reset_queue . append ( score_reel_group ) #NEWLINE# #UNINDENT# self . reset_queue . sort ( key = ( lambda x : x . name ) ) #NEWLINE# self . _reset_next_group ( )