| Conditions | 2 |
| Total Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | from intelligine.synergy.event.move.direction import get_position_with_direction_decal |
||
| 17 | def position_is_free(self, position): |
||
| 18 | threed_position = (0, position[0], position[1]) |
||
| 19 | points_distance = distance_from_points(threed_position, self._current_position) |
||
| 20 | if points_distance > 1: |
||
| 21 | raise Exception("Can't feel so far (%s to %s: %s)" % (str(self._current_position), |
||
| 22 | str(position), |
||
| 23 | str(points_distance))) |
||
| 24 | return self._context.position_is_penetrable(threed_position) |
||
| 25 |