\hypertarget{classDefaultWalkGValue}{\section{\-Default\-Walk\-G\-Value \-Class \-Reference}
\label{classDefaultWalkGValue}\index{\-Default\-Walk\-G\-Value@{\-Default\-Walk\-G\-Value}}
}


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

\subsection*{\-Public \-Member \-Functions}
\begin{DoxyCompactItemize}
\item 
int \hyperlink{classDefaultWalkGValue_ad8b55b2e049fdd1fd6342ab888d7d986}{operator()} (\hyperlink{classWalkPosition}{\-Walk\-Position} current\-Tile, \hyperlink{classWalkPosition}{\-Walk\-Position} previous\-Tile, int g\-Total)
\end{DoxyCompactItemize}


\subsection{\-Detailed \-Description}


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



\subsection{\-Member \-Function \-Documentation}
\hypertarget{classDefaultWalkGValue_ad8b55b2e049fdd1fd6342ab888d7d986}{\index{\-Default\-Walk\-G\-Value@{\-Default\-Walk\-G\-Value}!operator()@{operator()}}
\index{operator()@{operator()}!DefaultWalkGValue@{\-Default\-Walk\-G\-Value}}
\subsubsection[{operator()}]{\setlength{\rightskip}{0pt plus 5cm}int \-Default\-Walk\-G\-Value\-::operator() (
\begin{DoxyParamCaption}
\item[{{\bf \-Walk\-Position}}]{current\-Tile, }
\item[{{\bf \-Walk\-Position}}]{previous\-Tile, }
\item[{int}]{g\-Total}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}\label{classDefaultWalkGValue_ad8b55b2e049fdd1fd6342ab888d7d986}


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



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


\begin{DoxyCode}
        {
                gTotal += 10;
                if (currentTile.x != previousTile.x && currentTile.y != 
      previousTile.y)
                        gTotal += 4;

                return gTotal;
        }
\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}
