Changeset View
Changeset View
Standalone View
Standalone View
ps/trunk/source/network/NetClient.h
Show First 20 Lines • Show All 94 Lines • ▼ Show 20 Lines | public: | ||||
/** | /** | ||||
* Set the name of the hosting player. | * Set the name of the hosting player. | ||||
* This is needed for the secure lobby authentication. | * This is needed for the secure lobby authentication. | ||||
*/ | */ | ||||
void SetHostingPlayerName(const CStr& hostingPlayerName); | void SetHostingPlayerName(const CStr& hostingPlayerName); | ||||
/** | /** | ||||
* Set the game password. | |||||
*/ | |||||
void SetGamePassword(const CStr& hashedPassword); | |||||
/** | |||||
* Returns the GUID of the local client. | * Returns the GUID of the local client. | ||||
* Used for distinguishing observers. | * Used for distinguishing observers. | ||||
*/ | */ | ||||
CStr GetGUID() const { return m_GUID; } | CStr GetGUID() const { return m_GUID; } | ||||
/** | /** | ||||
* Set connection data to the remote networked server. | * Set connection data to the remote networked server. | ||||
* @param address IP address or host name to connect to | * @param address IP address or host name to connect to | ||||
▲ Show 20 Lines • Show All 177 Lines • ▼ Show 20 Lines | private: | ||||
CGame *m_Game; | CGame *m_Game; | ||||
CStrW m_UserName; | CStrW m_UserName; | ||||
CStr m_HostingPlayerName; | CStr m_HostingPlayerName; | ||||
CStr m_ServerAddress; | CStr m_ServerAddress; | ||||
u16 m_ServerPort; | u16 m_ServerPort; | ||||
bool m_UseSTUN; | bool m_UseSTUN; | ||||
/** | |||||
* Password to join the game. | |||||
*/ | |||||
CStr m_Password; | |||||
/// Current network session (or NULL if not connected) | /// Current network session (or NULL if not connected) | ||||
CNetClientSession* m_Session; | CNetClientSession* m_Session; | ||||
std::thread m_PollingThread; | std::thread m_PollingThread; | ||||
/// Turn manager associated with the current game (or NULL if we haven't started the game yet) | /// Turn manager associated with the current game (or NULL if we haven't started the game yet) | ||||
CNetClientTurnManager* m_ClientTurnManager; | CNetClientTurnManager* m_ClientTurnManager; | ||||
Show All 32 Lines |
Wildfire Games · Phabricator