\hypertarget{classDefaultWalkHValue}{\section{\-Default\-Walk\-H\-Value \-Class \-Reference}
\label{classDefaultWalkHValue}\index{\-Default\-Walk\-H\-Value@{\-Default\-Walk\-H\-Value}}
}


{\ttfamily \#include $<$\-Path\-Finder.\-h$>$}

\subsection*{\-Public \-Member \-Functions}
\begin{DoxyCompactItemize}
\item 
int \hyperlink{classDefaultWalkHValue_ae77f08acc9a17193dac3ea7703d040eb}{operator()} (\hyperlink{classWalkPosition}{\-Walk\-Position} position, \hyperlink{classWalkPosition}{\-Walk\-Position} target)
\end{DoxyCompactItemize}


\subsection{\-Detailed \-Description}


\-Definition at line 50 of file \-Path\-Finder.\-h.



\subsection{\-Member \-Function \-Documentation}
\hypertarget{classDefaultWalkHValue_ae77f08acc9a17193dac3ea7703d040eb}{\index{\-Default\-Walk\-H\-Value@{\-Default\-Walk\-H\-Value}!operator()@{operator()}}
\index{operator()@{operator()}!DefaultWalkHValue@{\-Default\-Walk\-H\-Value}}
\subsubsection[{operator()}]{\setlength{\rightskip}{0pt plus 5cm}int \-Default\-Walk\-H\-Value\-::operator() (
\begin{DoxyParamCaption}
\item[{{\bf \-Walk\-Position}}]{position, }
\item[{{\bf \-Walk\-Position}}]{target}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}\label{classDefaultWalkHValue_ae77f08acc9a17193dac3ea7703d040eb}


\-Definition at line 53 of file \-Path\-Finder.\-h.



\-References \-Walk\-Position\-::x, and \-Walk\-Position\-::y.


\begin{DoxyCode}
        {
                int dx = abs(position.x - target.x);
                int dy = abs(position.x - target.y);
                return abs(dx - dy) * 10 + std::min(dx, dy) * 14;
        }
\end{DoxyCode}


\-The documentation for this class was generated from the following file\-:\begin{DoxyCompactItemize}
\item 
\-Skynet/\-Skynet/\hyperlink{PathFinder_8h}{\-Path\-Finder.\-h}\end{DoxyCompactItemize}
