Skip to content
Snippets Groups Projects
Commit fe71d1f6 authored by Erik Nygren's avatar Erik Nygren :bullettrain_front:
Browse files

minor code cleanup

parent 91cbad43
No related branches found
No related tags found
No related merge requests found
......@@ -73,7 +73,7 @@ class GraphicsLayer(object):
"""
pass
def set_agent_at(self, iAgent, row, col, iDirIn, iDirOut, isSelected=False,rail_grid=None,show_debug=False,
def set_agent_at(self, iAgent, row, col, iDirIn, iDirOut, isSelected=False, rail_grid=None, show_debug=False,
clear_debug_text=True):
pass
......
......@@ -112,7 +112,6 @@ class PILGL(GraphicsLayer):
# rebuild background_grid to control the visualisation of buildings, trees, mountains, lakes and river
self.background_grid = np.zeros(shape=(self.width, self.height))
# build base distance map (distance to targets)
for x in range(self.width):
for y in range(self.height):
......@@ -636,7 +635,7 @@ class PILSVG(PILGL):
self.pil_zug[(in_direction_2, out_direction_2, color_idx)] = pils[color_idx]
def set_agent_at(self, agent_idx, row, col, in_direction, out_direction, is_selected,
rail_grid=None, show_debug=False,clear_debug_text=True):
rail_grid=None, show_debug=False, clear_debug_text=True):
delta_dir = (out_direction - in_direction) % 4
color_idx = agent_idx % self.n_agent_colors
# when flipping direction at a dead end, use the "out_direction" direction.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment