Starshatter_Open
Open source Starshatter engine
|
#include <NetClientConfig.h>
Public Member Functions | |
NetClientConfig () | |
~NetClientConfig () | |
void | AddServer (const char *name, const char *addr, WORD port, const char *password, bool save=false) |
void | DelServer (int index) |
List< NetServerInfo > & | GetServerList () |
NetServerInfo * | GetServerInfo (int n) |
void | Download () |
void | Load () |
void | Save () |
void | SetServerIndex (int n) |
int | GetServerIndex () const |
void | SetHostRequest (bool n) |
bool | GetHostRequest () const |
NetServerInfo * | GetSelectedServer () |
void | CreateConnection () |
NetLobbyClient * | GetConnection () |
bool | Login () |
bool | Logout () |
void | DropConnection () |
Static Public Member Functions | |
static void | Initialize () |
static void | Close () |
static NetClientConfig * | GetInstance () |
Definition at line 28 of file NetClientConfig.h.
NetClientConfig::NetClientConfig | ( | ) |
Definition at line 33 of file NetClientConfig.cpp.
NetClientConfig::~NetClientConfig | ( | ) |
Definition at line 40 of file NetClientConfig.cpp.
void NetClientConfig::AddServer | ( | const char * | name, |
const char * | addr, | ||
WORD | port, | ||
const char * | password, | ||
bool | save = false |
||
) |
Definition at line 67 of file NetClientConfig.cpp.
|
static |
Definition at line 58 of file NetClientConfig.cpp.
void NetClientConfig::CreateConnection | ( | ) |
Definition at line 270 of file NetClientConfig.cpp.
void NetClientConfig::DelServer | ( | int | index | ) |
Definition at line 95 of file NetClientConfig.cpp.
void NetClientConfig::Download | ( | ) |
Definition at line 127 of file NetClientConfig.cpp.
void NetClientConfig::DropConnection | ( | ) |
Definition at line 330 of file NetClientConfig.cpp.
NetLobbyClient * NetClientConfig::GetConnection | ( | ) |
Definition at line 297 of file NetClientConfig.cpp.
|
inline |
Definition at line 50 of file NetClientConfig.h.
|
inlinestatic |
Definition at line 61 of file NetClientConfig.h.
NetServerInfo * NetClientConfig::GetSelectedServer | ( | ) |
Definition at line 116 of file NetClientConfig.cpp.
|
inline |
Definition at line 48 of file NetClientConfig.h.
NetServerInfo * NetClientConfig::GetServerInfo | ( | int | n | ) |
Definition at line 105 of file NetClientConfig.cpp.
|
inline |
Definition at line 41 of file NetClientConfig.h.
|
static |
Definition at line 51 of file NetClientConfig.cpp.
void NetClientConfig::Load | ( | ) |
Definition at line 140 of file NetClientConfig.cpp.
bool NetClientConfig::Login | ( | ) |
Definition at line 303 of file NetClientConfig.cpp.
bool NetClientConfig::Logout | ( | ) |
Definition at line 317 of file NetClientConfig.cpp.
void NetClientConfig::Save | ( | ) |
Definition at line 238 of file NetClientConfig.cpp.
|
inline |
Definition at line 49 of file NetClientConfig.h.
|
inline |
Definition at line 47 of file NetClientConfig.h.