# Path: intelligine/synergy/event/move/direction.py
# def get_position_with_direction_decal(direction=CENTER, point=(0, 0, 0)):
#     z, x, y = point
#     directions_modifier = directions_modifiers[direction]
#     return z + directions_modifier[0], x + directions_modifier[1], y + directions_modifier[2]


from intelligine.synergy.event.move.direction import get_position_with_direction_decal
from synergine_xyz.cst import POSITION
from synergine_xyz.geometry import distance_from_points


class HostFeeler:

    def __init__(self, context, object_id):
        self._context = context
        self._object_id = object_id
        self._current_position = context.metas.value.get(POSITION, self._object_id)

    def direction_is_free(self, direction_of_home):

# Path: intelligine/synergy/event/move/direction.py
# def get_position_with_direction_decal(direction=CENTER, point=(0, 0, 0)):
#     z, x, y = point
#     directions_modifier = directions_modifiers[direction]
#     return z + directions_modifier[0], x + directions_modifier[1], y + directions_modifier[2]


# Path: intelligine/simulation/object/brain/part/move/AntStar/HostFeeler.py
from intelligine.synergy.event.move.direction import get_position_with_direction_decal
from synergine_xyz.cst import POSITION
from synergine_xyz.geometry import distance_from_points



class HostFeeler:

    def __init__(self, context, object_id):
        self._context = context
        self._object_id = object_id
        self._current_position = context.metas.value.get(POSITION, self._object_id)

    def direction_is_free(self, direction_of_home):

        position_will_be = get_position_with_direction_decal(direction_of_home, self._current_position)