#NEWLINE# def create_construction( self , x , y ) : #NEWLINE# #INDENT# ( x , y ) = ( ( ( x // hw ) * hw ) , ( ( y // hh ) * hh ) ) #NEWLINE# ( cx , cy ) = ( ( x // hw ) , ( y // hh ) ) #NEWLINE# cells = ( ( cx , cy ) , ( ( cx + 1 ) , cy ) , ( cx , ( cy + 1 ) ) , ( ( cx + 1 ) , ( cy + 1 ) ) ) #NEWLINE# for cell in cells : #NEWLINE# #INDENT# if self . play_field [ cell ] : #NEWLINE# #INDENT# return #NEWLINE# #UNINDENT# #UNINDENT# if ( not self . path . test_mod ( cells ) ) : #NEWLINE# #INDENT# return #NEWLINE# #UNINDENT# Turret ( x , y , self ) #NEWLINE# for cell in cells : #NEWLINE# #INDENT# self . play_field [ cell ] = path . Blocker #NEWLINE# #UNINDENT# self . path = path . Path . determine_path ( self . play_field , ( map_width * 2 ) , ( map_height * 2 ) ) #NEWLINE# self . show_highlight = False