Changeset View
Changeset View
Standalone View
Standalone View
source/network/NetClient.h
Show First 20 Lines • Show All 88 Lines • ▼ Show 20 Lines | public: | ||||
/** | /** | ||||
* Set the user's name that will be displayed to all players. | * Set the user's name that will be displayed to all players. | ||||
* This must not be called after the connection setup. | * This must not be called after the connection setup. | ||||
*/ | */ | ||||
void SetUserName(const CStrW& username); | void SetUserName(const CStrW& username); | ||||
/** | /** | ||||
* Set the name of the hosting player. | * Store the JID of the host. | ||||
* This is needed for the secure lobby authentication. | * This is needed for the secure lobby authentication. | ||||
*/ | */ | ||||
void SetHostingPlayerName(const CStr& hostingPlayerName); | void SetHostJID(const CStr& jid); | ||||
/** | /** | ||||
* Set the game password. | * Set the game password. | ||||
*/ | */ | ||||
void SetGamePassword(const CStr& hashedPassword); | void SetGamePassword(const CStr& hashedPassword); | ||||
/** | /** | ||||
* Returns the GUID of the local client. | * Returns the GUID of the local client. | ||||
▲ Show 20 Lines • Show All 179 Lines • ▼ Show 20 Lines | private: | ||||
/** | /** | ||||
* Push a message onto the GUI queue listing the current player assignments. | * Push a message onto the GUI queue listing the current player assignments. | ||||
*/ | */ | ||||
void PostPlayerAssignmentsToScript(); | void PostPlayerAssignmentsToScript(); | ||||
CGame *m_Game; | CGame *m_Game; | ||||
CStrW m_UserName; | CStrW m_UserName; | ||||
CStr m_HostingPlayerName; | |||||
CStr m_HostJID; | |||||
CStr m_ServerAddress; | CStr m_ServerAddress; | ||||
u16 m_ServerPort; | u16 m_ServerPort; | ||||
bool m_UseSTUN; | bool m_UseSTUN; | ||||
/** | /** | ||||
* Password to join the game. | * Password to join the game. | ||||
*/ | */ | ||||
CStr m_Password; | CStr m_Password; | ||||
▲ Show 20 Lines • Show All 41 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator