#NEWLINE# def hit_listener( self , region , tags , shot , shot_list_item ) : #NEWLINE# #INDENT# if ( 'subtarget' in tags ) : #NEWLINE# #INDENT# target_name = self . _operations . get_target_name ( region ) #NEWLINE# if ( tags [ 'subtarget' ] == 'shoot' ) : #NEWLINE# #INDENT# self . _remove_target ( target_name ) #NEWLINE# self . _current_shoot_targets . remove ( target_name ) #NEWLINE# self . _operations . append_shot_item_values ( shot_list_item , ( tags [ 'subtarget' ] , ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( tags [ 'subtarget' ] == 'dont_shoot' ) : #NEWLINE# #INDENT# self . _remove_target ( target_name ) #NEWLINE# self . _current_dont_shoot_targets . remove ( target_name ) #NEWLINE# self . _bad_hits += 1 #NEWLINE# self . _operations . append_shot_item_values ( shot_list_item , ( tags [ 'subtarget' ] , ) ) #NEWLINE# self . _operations . say ( 'Bad shoot!' )