\section{TPProto::Game\-Status\-Listener Class Reference}
\label{classTPProto_1_1GameStatusListener}\index{TPProto::GameStatusListener@{TPProto::GameStatusListener}}
A Listener for listening for changes to the game status and connection.  


{\tt \#include $<$gamestatuslistener.h$>$}

\subsection*{Public Member Functions}
\begin{CompactItemize}
\item 
virtual {\bf $\sim$Game\-Status\-Listener} ()\label{classTPProto_1_1GameStatusListener_76423f12507a127cff214291883ec432}

\begin{CompactList}\small\item\em Required virtual destructor. \item\end{CompactList}\item 
virtual void {\bf connected} ()=0\label{classTPProto_1_1GameStatusListener_e124be7acda4d5d542ee59495ac12459}

\begin{CompactList}\small\item\em Called when a connection is established to a server. \item\end{CompactList}\item 
virtual bool {\bf redirected} (const std::string \&url)=0
\begin{CompactList}\small\item\em Called when libtpproto-cpp has been told to redirect. \item\end{CompactList}\item 
virtual void {\bf disconnected} ()=0\label{classTPProto_1_1GameStatusListener_0819d43c0818b4ce64f110830d16ff68}

\begin{CompactList}\small\item\em Called when the connection is lost to the server. \item\end{CompactList}\item 
virtual void {\bf account\-Created} (bool status)=0
\begin{CompactList}\small\item\em Called when the player's account is created sucessfully or not. \item\end{CompactList}\item 
virtual void {\bf logged\-In} (bool status)=0
\begin{CompactList}\small\item\em Called when the player is sucessfully logged in or not. \item\end{CompactList}\item 
virtual void {\bf eot\-Started} ()=0\label{classTPProto_1_1GameStatusListener_7c1650c98ce306961a920264aa2e1c84}

\begin{CompactList}\small\item\em Called when libtpproto-cpp notices that EOT has started. Noticed when a Time frame is sent that has 0 time. This could be well after it has actually started. \item\end{CompactList}\item 
virtual void {\bf eot\-Ended} ()=0\label{classTPProto_1_1GameStatusListener_d438ed33aba9f3ac0481cee7fce67133}

\begin{CompactList}\small\item\em Called when libtpproto-cpp notices that EOT has ended. Noticed when a Time frame is sent that has non-zero time after EOT has started. This could be well after it has actually ended. \item\end{CompactList}\item 
virtual void {\bf time\-To\-Eot} (uint32\_\-t timetoeot)=0\label{classTPProto_1_1GameStatusListener_397a040484a4b86255f82f70b1f802a4}

\begin{CompactList}\small\item\em Called when an updated time to end of turn is received. Could be inacturate. Called after eot\-Stated and eot\-Ended are called. \item\end{CompactList}\end{CompactItemize}


\subsection{Detailed Description}
A Listener for listening for changes to the game status and connection. 



\subsection{Member Function Documentation}
\index{TPProto::GameStatusListener@{TPProto::Game\-Status\-Listener}!redirected@{redirected}}
\index{redirected@{redirected}!TPProto::GameStatusListener@{TPProto::Game\-Status\-Listener}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}virtual bool TPProto::Game\-Status\-Listener::redirected (const std::string \& {\em url})\hspace{0.3cm}{\tt  [pure virtual]}}\label{classTPProto_1_1GameStatusListener_9dc009e1f660acf23fddb5aa0627c93b}


Called when libtpproto-cpp has been told to redirect. 

The client has already been disconnected from the redirecting server at this point. If the \doxyref{Game\-Status\-Listener}{p.}{classTPProto_1_1GameStatusListener} returns false, then the client must manually do the redirect. This should be helpful for allowing the client to pop up a dialog asking the user if they want to redirect. \begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em url}]The url the redirection points to. \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]True to follow the redirect, false not to. \end{Desc}
\index{TPProto::GameStatusListener@{TPProto::Game\-Status\-Listener}!accountCreated@{accountCreated}}
\index{accountCreated@{accountCreated}!TPProto::GameStatusListener@{TPProto::Game\-Status\-Listener}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}virtual void TPProto::Game\-Status\-Listener::account\-Created (bool {\em status})\hspace{0.3cm}{\tt  [pure virtual]}}\label{classTPProto_1_1GameStatusListener_b15bb23dbc0f36b3c8431689e3111730}


Called when the player's account is created sucessfully or not. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em status}]True if account created, false otherwise. \end{description}
\end{Desc}
\index{TPProto::GameStatusListener@{TPProto::Game\-Status\-Listener}!loggedIn@{loggedIn}}
\index{loggedIn@{loggedIn}!TPProto::GameStatusListener@{TPProto::Game\-Status\-Listener}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}virtual void TPProto::Game\-Status\-Listener::logged\-In (bool {\em status})\hspace{0.3cm}{\tt  [pure virtual]}}\label{classTPProto_1_1GameStatusListener_6b96cf6154a3af1dd7463bcaa66773c2}


Called when the player is sucessfully logged in or not. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em status}]True if logged in, false otherwise. \end{description}
\end{Desc}


The documentation for this class was generated from the following file:\begin{CompactItemize}
\item 
tpproto/{\bf gamestatuslistener.h}\end{CompactItemize}
