#NEWLINE# def reset( self , targets ) : #NEWLINE# #INDENT# self . _missed_targets = 0 #NEWLINE# self . _bad_hits = 0 #NEWLINE# if ( not self . _operations . projector_arena_visible ( ) ) : #NEWLINE# #INDENT# self . _operations . say ( 'This protocol only works on the projector arena.' ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . _remove_old_targets ( self . _current_shoot_targets ) #NEWLINE# self . _current_shoot_targets = [ ] #NEWLINE# self . _remove_old_targets ( self . _current_dont_shoot_targets ) #NEWLINE# self . _current_dont_shoot_targets = [ ] #NEWLINE# self . _add_targets ( self . _current_shoot_targets , 'training_protocols/shoot_dont_shoot/shoot.target' ) #NEWLINE# self . _add_targets ( self . _current_dont_shoot_targets , 'training_protocols/shoot_dont_shoot/dont_shoot.target' ) #NEWLINE# message = ( 'missed targets: %d\nbad hits: %d' % ( self . _missed_targets , self . _bad_hits ) ) #NEWLINE# self . _operations . show_text_on_feed ( message ) #NEWLINE# self . _new_round_thread = Thread ( target = self . _new_round , name = 'new_round_thread' ) #NEWLINE# self . _new_round_thread . start ( )