Changeset View
Changeset View
Standalone View
Standalone View
source/network/NetClient.h
Show First 20 Lines • Show All 85 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. | * Set the JID 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 SetHostJID(const CStr& hostJID); | ||||
/** | /** | ||||
* 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; } | ||||
/** | /** | ||||
▲ Show 20 Lines • Show All 150 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; | ||||
/// Current network session (or NULL if not connected) | /// Current network session (or NULL if not connected) | ||||
CNetClientSession* m_Session; | CNetClientSession* m_Session; | ||||
/// 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; | ||||
/// Unique-per-game identifier of this client, used to identify the sender of simulation commands | /// Unique-per-game identifier of this client, used to identify the sender of simulation commands | ||||
Show All 31 Lines |
Wildfire Games · Phabricator