#include <gameinfo.h>
Inheritance diagram for TPProto::GameInfo:

Public Member Functions | |
| GameInfo () | |
| Default constructor. | |
| virtual | ~GameInfo () |
| Required virtual destructor. | |
| void | packBuffer (Buffer *buf) |
| Pack this GameInfo Frame into a Buffer, asserts. | |
| bool | unpackBuffer (Buffer *buf) |
| Unpack from a Buffer. | |
| std::string | getGameName () const |
| Gets the game name for the game. | |
| std::set< std::string > | getAvailableProtocolVersions () const |
| Gets the available protocol versions. | |
| std::string | getServerName () const |
| Get the name of the server software. | |
| std::string | getServerVersion () const |
| Get the version of the server software. | |
| std::string | getRulesetName () const |
| Get the name of the ruleset. | |
| std::string | getRulesetVersion () const |
| Get the version of the ruleset. | |
| std::string | getMediaBaseUrl () const |
| Get the base url for media for the game. | |
| std::set< std::string > | getConnectionUrls () const |
| Get the urls this game can be connected by. | |
| std::string | getAdvertisedIp (const std::string &url) const |
| Gets the IP address advertised for a Connection URL. | |
| std::string | getOptionString (uint32_t optionid) const |
| Get the OptionString associated with a given option id. | |
| uint32_t | getOptionInt (uint32_t optionid) const |
| Get the Option Integer associated with a given option id. | |
| void TPProto::GameInfo::packBuffer | ( | Buffer * | buf | ) | [virtual] |
| bool TPProto::GameInfo::unpackBuffer | ( | Buffer * | buf | ) | [virtual] |
Unpack from a Buffer.
Unpacks the GameInfo frame from the Buffer, if possible.
| buf | The Buffer to unpack.. |
Implements TPProto::Frame.
| std::string TPProto::GameInfo::getGameName | ( | ) | const |
Gets the game name for the game.
| std::set< std::string > TPProto::GameInfo::getAvailableProtocolVersions | ( | ) | const |
Gets the available protocol versions.
| std::string TPProto::GameInfo::getServerName | ( | ) | const |
Get the name of the server software.
| std::string TPProto::GameInfo::getServerVersion | ( | ) | const |
Get the version of the server software.
| std::string TPProto::GameInfo::getRulesetName | ( | ) | const |
Get the name of the ruleset.
| std::string TPProto::GameInfo::getRulesetVersion | ( | ) | const |
Get the version of the ruleset.
| std::string TPProto::GameInfo::getMediaBaseUrl | ( | ) | const |
Get the base url for media for the game.
| std::set< std::string > TPProto::GameInfo::getConnectionUrls | ( | ) | const |
Get the urls this game can be connected by.
| std::string TPProto::GameInfo::getAdvertisedIp | ( | const std::string & | url | ) | const |
Gets the IP address advertised for a Connection URL.
| url | The URL to get the corresponding IP of. |
| std::string TPProto::GameInfo::getOptionString | ( | uint32_t | optionid | ) | const |
Get the OptionString associated with a given option id.
An empty return string could be either empty in the option, or the option does not exist for this game.
| optionid | The option id to get the string of. |
| uint32_t TPProto::GameInfo::getOptionInt | ( | uint32_t | optionid | ) | const |
Get the Option Integer associated with a given option id.
A value of 0 could be either 0 for the option, or the option does not exist for this game.
| optionid | The option id to get the integer of. |
1.5.1