#include <gamestatuslistener.h>
Public Member Functions | |
| virtual | ~GameStatusListener () |
| Required virtual destructor. | |
| virtual void | connected ()=0 |
| Called when a connection is established to a server. | |
| virtual bool | redirected (const std::string &url)=0 |
| Called when libtpproto-cpp has been told to redirect. | |
| virtual void | disconnected ()=0 |
| Called when the connection is lost to the server. | |
| virtual void | accountCreated (bool status)=0 |
| Called when the player's account is created sucessfully or not. | |
| virtual void | loggedIn (bool status)=0 |
| Called when the player is sucessfully logged in or not. | |
| virtual void | eotStarted ()=0 |
| 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. | |
| virtual void | eotEnded ()=0 |
| 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. | |
| virtual void | timeToEot (uint32_t timetoeot)=0 |
| Called when an updated time to end of turn is received. Could be inacturate. Called after eotStated and eotEnded are called. | |
| virtual bool TPProto::GameStatusListener::redirected | ( | const std::string & | url | ) | [pure virtual] |
Called when libtpproto-cpp has been told to redirect.
The client has already been disconnected from the redirecting server at this point. If the GameStatusListener 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.
| url | The url the redirection points to. |
| virtual void TPProto::GameStatusListener::accountCreated | ( | bool | status | ) | [pure virtual] |
Called when the player's account is created sucessfully or not.
| status | True if account created, false otherwise. |
| virtual void TPProto::GameStatusListener::loggedIn | ( | bool | status | ) | [pure virtual] |
Called when the player is sucessfully logged in or not.
| status | True if logged in, false otherwise. |
1.5.1