MCPcopy Create free account
hub / github.com/BZFlag-Dev/bzflag / newPage

Method newPage

plugins/webadmin/loops.cpp:182–190  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

180}
181
182void PlayerLoop::newPage(const std::string& pagename, const HTTPRequest& request) {
183 UNUSED(pagename);
184
185 playerID = -1;
186 std::string pID;
187 if (request.getParam("playerID", pID) && pID.size()) {
188 playerID = atoi(pID.c_str());
189 }
190}
191
192int PlayerLoop::getPlayerID(void) {
193 int id = playerID;

Callers

nothing calls this directly

Calls 3

c_strMethod · 0.80
getParamMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected