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


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

\subsection*{\-Public \-Member \-Functions}
\begin{DoxyCompactItemize}
\item 
int \hyperlink{classDefaultHValue_a0c8e1314303cb6201d90a7ba3391e584}{operator()} (\hyperlink{Interface_8h_ad2186bdc15b990e538451931b3e11c67}{\-Tile\-Position} position, \hyperlink{Interface_8h_ad2186bdc15b990e538451931b3e11c67}{\-Tile\-Position} target)
\end{DoxyCompactItemize}


\subsection{\-Detailed \-Description}


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



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


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



\-References \-B\-W\-A\-P\-I\-::\-Tile\-Position\-::x(), and \-B\-W\-A\-P\-I\-::\-Tile\-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}


\-Here is the call graph for this function\-:\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{classDefaultHValue_a0c8e1314303cb6201d90a7ba3391e584_cgraph}
\end{center}
\end{figure}




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