(self, surface, vehicles, traffic_lights, speed_limits, walkers)
| 1109 | pygame.draw.lines(surface, color, False, corners, int(math.ceil(4.0 * self.map_image.scale))) |
| 1110 | |
| 1111 | def render_actors(self, surface, vehicles, traffic_lights, speed_limits, walkers): |
| 1112 | # Static actors |
| 1113 | self._render_traffic_lights(surface, [tl[0] for tl in traffic_lights], self.map_image.world_to_pixel) |
| 1114 | self._render_speed_limits(surface, [sl[0] for sl in speed_limits], self.map_image.world_to_pixel, |
| 1115 | self.map_image.world_to_pixel_width) |
| 1116 | |
| 1117 | # Dynamic actors |
| 1118 | self._render_vehicles(surface, vehicles, self.map_image.world_to_pixel) |
| 1119 | self._render_walkers(surface, walkers, self.map_image.world_to_pixel) |
| 1120 | |
| 1121 | def clip_surfaces(self, clipping_rect): |
| 1122 | self.actors_surface.set_clip(clipping_rect) |
no test coverage detected