MCPcopy Create free account
hub / github.com/BohemiaInteractive/CWR / NetworkClient

Method NetworkClient

engine/Poseidon/Network/NetworkClient.cpp:138–169  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

136 return entry->GetInt() != 0;
137}
138
139// Network client itself
140
141NetworkClient::NetworkClient(NetworkManager* parent, RString address, RString password, bool botClient)
142 : NetworkComponent(parent)
143{
144 Verify(Init(address, password, botClient));
145 _state = NGSCreating;
146 _serverState = NGSCreating;
147
148 _connectionQuality = CQGood;
149
150 _localPlayerName = Glob.header.playerName;
151
152 _missionFileValid = false;
153
154 _gameMaster = false;
155 _admin = false;
156 _selectMission = false;
157 _voteMission = false;
158
159 _controlsPaused = false;
160 _jip = false;
161 _pendingSelectPlayer = false;
162 _missionRawLastRequestTime = 0;
163 _missionRawLastSegmentTime = 0;
164 _missionRawExpectedSize = 0;
165 _missionRawHighestReceivedSegment = -1;
166 _missionRawRequestedDuplicateUniqueSegments = 0;
167 _missionTransferHeaderStatsLogged = false;
168
169 _soundId = 0; // incremented for each PlaySound
170
171 GetValue(_chatSound, Pars >> "CfgInGameUI" >> "Chat" >> "sound");
172

Callers

nothing calls this directly

Calls 3

GetValueFunction · 0.85
DeleteDirectoryStructureFunction · 0.85
InitFunction · 0.50

Tested by

no test coverage detected