flatland.utils.graphics_layer module¶
-
class
flatland.utils.graphics_layer.
GraphicsLayer
[source]¶ Bases:
object
-
set_agent_at
(self, iAgent, row, col, iDirIn, iDirOut, isSelected=False, rail_grid=None, show_debug=False, clear_debug_text=True)[source]¶
-
set_rail_at
(self, row, col, binTrans, iTarget=None, isSelected=False, rail_grid=None, num_agents=None)[source]¶ Set the rail at cell (row, col) to have transitions binTrans. The target argument can contain the index of the agent to indicate that agent’s target is at that cell, so that a station can be rendered in the static rail layer.
-