\doxysection{Player\texorpdfstring{$<$}{<} T \texorpdfstring{$>$}{>} Class Template Reference}
\hypertarget{class_player}{}\label{class_player}\index{Player$<$ T $>$@{Player$<$ T $>$}}


Base template for all players (human or AI).  




{\ttfamily \#include $<$Board\+Game\+\_\+\+Classes.\+h$>$}

\doxysubsubsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\mbox{\hyperlink{class_player_adb4e803a7ac0356b111b8ca79d766976}{Player}} (string n, T s, \mbox{\hyperlink{_board_game___classes_8h_abe590f3c9109f404f003d5d7e4f0fccf}{Player\+Type}} t)
\begin{DoxyCompactList}\small\item\em Construct a player with name, symbol, and type. \end{DoxyCompactList}\item 
virtual \mbox{\hyperlink{class_player_aac1f2ab2a8e2aa0336d302c16068020e}{\texorpdfstring{$\sim$}{\string~}\+Player}} ()
\item 
string \mbox{\hyperlink{class_player_aed2af19790ba73190e3ebeea589518e1}{get\+\_\+name}} () const
\begin{DoxyCompactList}\small\item\em Get the player\textquotesingle{}s name. \end{DoxyCompactList}\item 
\mbox{\hyperlink{_board_game___classes_8h_abe590f3c9109f404f003d5d7e4f0fccf}{Player\+Type}} \mbox{\hyperlink{class_player_a2df3bd299bf7aecfa2275ec6902a60f8}{get\+\_\+type}} () const
\begin{DoxyCompactList}\small\item\em Get player type (e.\+g., \textquotesingle{}H\textquotesingle{} or \textquotesingle{}C\textquotesingle{}). \end{DoxyCompactList}\item 
T \mbox{\hyperlink{class_player_af56f0bf98c0423a3a75b0848607d03a4}{get\+\_\+symbol}} () const
\begin{DoxyCompactList}\small\item\em Get the player\textquotesingle{}s symbol. \end{DoxyCompactList}\item 
\mbox{\hyperlink{class_board}{Board}}$<$ T $>$ \texorpdfstring{$\ast$}{*} \mbox{\hyperlink{class_player_a508617eddfae8915d098102d480fc888}{get\+\_\+board\+\_\+ptr}} () const
\begin{DoxyCompactList}\small\item\em Get a pointer to the game board. \end{DoxyCompactList}\item 
void \mbox{\hyperlink{class_player_a3617a3ad0db435176a06948065f9a3a6}{set\+\_\+board\+\_\+ptr}} (\mbox{\hyperlink{class_board}{Board}}$<$ T $>$ \texorpdfstring{$\ast$}{*}b)
\begin{DoxyCompactList}\small\item\em Assign the board pointer for the player. \end{DoxyCompactList}\end{DoxyCompactItemize}
\doxysubsubsection*{Protected Attributes}
\begin{DoxyCompactItemize}
\item 
string \mbox{\hyperlink{class_player_af0ad0d4ca8584d23a98c723cd703a4f6}{name}}
\begin{DoxyCompactList}\small\item\em \doxylink{class_player}{Player} name. \end{DoxyCompactList}\item 
\mbox{\hyperlink{_board_game___classes_8h_abe590f3c9109f404f003d5d7e4f0fccf}{Player\+Type}} \mbox{\hyperlink{class_player_a81a15b1b507fd5f2157fb15bf0fd283f}{type}}
\begin{DoxyCompactList}\small\item\em \doxylink{class_player}{Player} type (e.\+g., HUMAN or COMPUTER). \end{DoxyCompactList}\item 
T \mbox{\hyperlink{class_player_a272d6c4dab769930d4f8074918e7708a}{symbol}}
\begin{DoxyCompactList}\small\item\em Player’s symbol on board. \end{DoxyCompactList}\item 
\mbox{\hyperlink{class_board}{Board}}$<$ T $>$ \texorpdfstring{$\ast$}{*} \mbox{\hyperlink{class_player_a26249e756f850b6585267bfbc928ac79}{board\+Ptr}}
\begin{DoxyCompactList}\small\item\em Pointer to the game board. \end{DoxyCompactList}\end{DoxyCompactItemize}


\doxysubsection{Detailed Description}
\subsubsection*{template$<$typename T$>$\newline
class Player$<$ T $>$}
Base template for all players (human or AI). 


\begin{DoxyTemplParams}{Template Parameters}
{\em T} & Type of symbol used by the player. \\
\hline
\end{DoxyTemplParams}


\label{doc-constructors}
\Hypertarget{class_player_doc-constructors}
\doxysubsection{Constructor \& Destructor Documentation}
\Hypertarget{class_player_adb4e803a7ac0356b111b8ca79d766976}\index{Player$<$ T $>$@{Player$<$ T $>$}!Player@{Player}}
\index{Player@{Player}!Player$<$ T $>$@{Player$<$ T $>$}}
\doxysubsubsection{\texorpdfstring{Player()}{Player()}}
{\footnotesize\ttfamily \label{class_player_adb4e803a7ac0356b111b8ca79d766976} 
template$<$typename T$>$ \\
\mbox{\hyperlink{class_player}{Player}}$<$ T $>$\+::\+Player (\begin{DoxyParamCaption}\item[{string}]{n}{, }\item[{T}]{s}{, }\item[{\mbox{\hyperlink{_board_game___classes_8h_abe590f3c9109f404f003d5d7e4f0fccf}{Player\+Type}}}]{t}{}\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}



Construct a player with name, symbol, and type. 

\Hypertarget{class_player_aac1f2ab2a8e2aa0336d302c16068020e}\index{Player$<$ T $>$@{Player$<$ T $>$}!````~Player@{\texorpdfstring{$\sim$}{\string~}Player}}
\index{````~Player@{\texorpdfstring{$\sim$}{\string~}Player}!Player$<$ T $>$@{Player$<$ T $>$}}
\doxysubsubsection{\texorpdfstring{\texorpdfstring{$\sim$}{\string~}Player()}{\string~Player()}}
{\footnotesize\ttfamily \label{class_player_aac1f2ab2a8e2aa0336d302c16068020e} 
template$<$typename T$>$ \\
virtual \mbox{\hyperlink{class_player}{Player}}$<$ T $>$\+::\texorpdfstring{$\sim$}{\string~}\mbox{\hyperlink{class_player}{Player}} (\begin{DoxyParamCaption}{}{}\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [virtual]}}



\label{doc-func-members}
\Hypertarget{class_player_doc-func-members}
\doxysubsection{Member Function Documentation}
\Hypertarget{class_player_a508617eddfae8915d098102d480fc888}\index{Player$<$ T $>$@{Player$<$ T $>$}!get\_board\_ptr@{get\_board\_ptr}}
\index{get\_board\_ptr@{get\_board\_ptr}!Player$<$ T $>$@{Player$<$ T $>$}}
\doxysubsubsection{\texorpdfstring{get\_board\_ptr()}{get\_board\_ptr()}}
{\footnotesize\ttfamily \label{class_player_a508617eddfae8915d098102d480fc888} 
template$<$typename T$>$ \\
\mbox{\hyperlink{class_board}{Board}}$<$ T $>$ \texorpdfstring{$\ast$}{*} \mbox{\hyperlink{class_player}{Player}}$<$ T $>$\+::get\+\_\+board\+\_\+ptr (\begin{DoxyParamCaption}{}{}\end{DoxyParamCaption}) const\hspace{0.3cm}{\ttfamily [inline]}}



Get a pointer to the game board. 

\Hypertarget{class_player_aed2af19790ba73190e3ebeea589518e1}\index{Player$<$ T $>$@{Player$<$ T $>$}!get\_name@{get\_name}}
\index{get\_name@{get\_name}!Player$<$ T $>$@{Player$<$ T $>$}}
\doxysubsubsection{\texorpdfstring{get\_name()}{get\_name()}}
{\footnotesize\ttfamily \label{class_player_aed2af19790ba73190e3ebeea589518e1} 
template$<$typename T$>$ \\
string \mbox{\hyperlink{class_player}{Player}}$<$ T $>$\+::get\+\_\+name (\begin{DoxyParamCaption}{}{}\end{DoxyParamCaption}) const\hspace{0.3cm}{\ttfamily [inline]}}



Get the player\textquotesingle{}s name. 

\Hypertarget{class_player_af56f0bf98c0423a3a75b0848607d03a4}\index{Player$<$ T $>$@{Player$<$ T $>$}!get\_symbol@{get\_symbol}}
\index{get\_symbol@{get\_symbol}!Player$<$ T $>$@{Player$<$ T $>$}}
\doxysubsubsection{\texorpdfstring{get\_symbol()}{get\_symbol()}}
{\footnotesize\ttfamily \label{class_player_af56f0bf98c0423a3a75b0848607d03a4} 
template$<$typename T$>$ \\
T \mbox{\hyperlink{class_player}{Player}}$<$ T $>$\+::get\+\_\+symbol (\begin{DoxyParamCaption}{}{}\end{DoxyParamCaption}) const\hspace{0.3cm}{\ttfamily [inline]}}



Get the player\textquotesingle{}s symbol. 

\Hypertarget{class_player_a2df3bd299bf7aecfa2275ec6902a60f8}\index{Player$<$ T $>$@{Player$<$ T $>$}!get\_type@{get\_type}}
\index{get\_type@{get\_type}!Player$<$ T $>$@{Player$<$ T $>$}}
\doxysubsubsection{\texorpdfstring{get\_type()}{get\_type()}}
{\footnotesize\ttfamily \label{class_player_a2df3bd299bf7aecfa2275ec6902a60f8} 
template$<$typename T$>$ \\
\mbox{\hyperlink{_board_game___classes_8h_abe590f3c9109f404f003d5d7e4f0fccf}{Player\+Type}} \mbox{\hyperlink{class_player}{Player}}$<$ T $>$\+::get\+\_\+type (\begin{DoxyParamCaption}{}{}\end{DoxyParamCaption}) const\hspace{0.3cm}{\ttfamily [inline]}}



Get player type (e.\+g., \textquotesingle{}H\textquotesingle{} or \textquotesingle{}C\textquotesingle{}). 

\Hypertarget{class_player_a3617a3ad0db435176a06948065f9a3a6}\index{Player$<$ T $>$@{Player$<$ T $>$}!set\_board\_ptr@{set\_board\_ptr}}
\index{set\_board\_ptr@{set\_board\_ptr}!Player$<$ T $>$@{Player$<$ T $>$}}
\doxysubsubsection{\texorpdfstring{set\_board\_ptr()}{set\_board\_ptr()}}
{\footnotesize\ttfamily \label{class_player_a3617a3ad0db435176a06948065f9a3a6} 
template$<$typename T$>$ \\
void \mbox{\hyperlink{class_player}{Player}}$<$ T $>$\+::set\+\_\+board\+\_\+ptr (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{class_board}{Board}}$<$ T $>$ \texorpdfstring{$\ast$}{*}}]{b}{}\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}



Assign the board pointer for the player. 



\label{doc-variable-members}
\Hypertarget{class_player_doc-variable-members}
\doxysubsection{Member Data Documentation}
\Hypertarget{class_player_a26249e756f850b6585267bfbc928ac79}\index{Player$<$ T $>$@{Player$<$ T $>$}!boardPtr@{boardPtr}}
\index{boardPtr@{boardPtr}!Player$<$ T $>$@{Player$<$ T $>$}}
\doxysubsubsection{\texorpdfstring{boardPtr}{boardPtr}}
{\footnotesize\ttfamily \label{class_player_a26249e756f850b6585267bfbc928ac79} 
template$<$typename T$>$ \\
\mbox{\hyperlink{class_board}{Board}}$<$T$>$\texorpdfstring{$\ast$}{*} \mbox{\hyperlink{class_player}{Player}}$<$ T $>$\+::board\+Ptr\hspace{0.3cm}{\ttfamily [protected]}}



Pointer to the game board. 

\Hypertarget{class_player_af0ad0d4ca8584d23a98c723cd703a4f6}\index{Player$<$ T $>$@{Player$<$ T $>$}!name@{name}}
\index{name@{name}!Player$<$ T $>$@{Player$<$ T $>$}}
\doxysubsubsection{\texorpdfstring{name}{name}}
{\footnotesize\ttfamily \label{class_player_af0ad0d4ca8584d23a98c723cd703a4f6} 
template$<$typename T$>$ \\
string \mbox{\hyperlink{class_player}{Player}}$<$ T $>$\+::name\hspace{0.3cm}{\ttfamily [protected]}}



\doxylink{class_player}{Player} name. 

\Hypertarget{class_player_a272d6c4dab769930d4f8074918e7708a}\index{Player$<$ T $>$@{Player$<$ T $>$}!symbol@{symbol}}
\index{symbol@{symbol}!Player$<$ T $>$@{Player$<$ T $>$}}
\doxysubsubsection{\texorpdfstring{symbol}{symbol}}
{\footnotesize\ttfamily \label{class_player_a272d6c4dab769930d4f8074918e7708a} 
template$<$typename T$>$ \\
T \mbox{\hyperlink{class_player}{Player}}$<$ T $>$\+::symbol\hspace{0.3cm}{\ttfamily [protected]}}



Player’s symbol on board. 

\Hypertarget{class_player_a81a15b1b507fd5f2157fb15bf0fd283f}\index{Player$<$ T $>$@{Player$<$ T $>$}!type@{type}}
\index{type@{type}!Player$<$ T $>$@{Player$<$ T $>$}}
\doxysubsubsection{\texorpdfstring{type}{type}}
{\footnotesize\ttfamily \label{class_player_a81a15b1b507fd5f2157fb15bf0fd283f} 
template$<$typename T$>$ \\
\mbox{\hyperlink{_board_game___classes_8h_abe590f3c9109f404f003d5d7e4f0fccf}{Player\+Type}} \mbox{\hyperlink{class_player}{Player}}$<$ T $>$\+::type\hspace{0.3cm}{\ttfamily [protected]}}



\doxylink{class_player}{Player} type (e.\+g., HUMAN or COMPUTER). 



The documentation for this class was generated from the following file\+:\begin{DoxyCompactItemize}
\item 
\mbox{\hyperlink{_board_game___classes_8h}{Board\+Game\+\_\+\+Classes.\+h}}\end{DoxyCompactItemize}
