Changeset View
Changeset View
Standalone View
Standalone View
source/network/NetClient.h
Show All 21 Lines | |||||
#include "network/NetFileTransfer.h" | #include "network/NetFileTransfer.h" | ||||
#include "network/NetHost.h" | #include "network/NetHost.h" | ||||
#include "scriptinterface/ScriptInterface.h" | #include "scriptinterface/ScriptInterface.h" | ||||
#include "ps/CStr.h" | #include "ps/CStr.h" | ||||
#include <ctime> | #include <ctime> | ||||
#include <deque> | #include <deque> | ||||
#include <thread> | |||||
class CGame; | class CGame; | ||||
class CNetClientSession; | class CNetClientSession; | ||||
class CNetClientTurnManager; | class CNetClientTurnManager; | ||||
class CNetServer; | class CNetServer; | ||||
class ScriptInterface; | class ScriptInterface; | ||||
typedef struct _ENetHost ENetHost; | typedef struct _ENetHost ENetHost; | ||||
▲ Show 20 Lines • Show All 270 Lines • ▼ Show 20 Lines | private: | ||||
std::string m_ControllerSecret; | std::string m_ControllerSecret; | ||||
/// Note that this is just a "gui hint" with no actual impact on being controller. | /// Note that this is just a "gui hint" with no actual impact on being controller. | ||||
bool m_IsController = false; | bool m_IsController = false; | ||||
/// 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; | |||||
/// 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 | ||||
u32 m_HostID; | u32 m_HostID; | ||||
/// True if the player is currently rejoining or has already rejoined the game. | /// True if the player is currently rejoining or has already rejoined the game. | ||||
bool m_Rejoin; | bool m_Rejoin; | ||||
Show All 21 Lines |
Wildfire Games · Phabricator