int GetCostToNode(CPos destNode, CVec direction)
        {
            var movementCost = locomotorInfo.MovementCostToEnterCell(worldMovementInfo, Actor, destNode, IgnoreActor, checkConditions);

            if (movementCost != int.MaxValue && !(CustomBlock != null && CustomBlock(destNode)))
            {
                return(CalculateCellCost(destNode, direction, movementCost));
            }

            return(Constants.InvalidNode);
        }