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

Function getStatus

plugins/webstats/webstats.cpp:310–335  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

308}
309
310void getStatus(bz_BasePlayerRecord* rec, std::string& data) {
311 if (rec->team != eObservers) {
312 if (rec->admin) {
313 data += "Admin";
314 }
315
316 if (rec->spawned) {
317 if (rec->admin) {
318 data += "/";
319 }
320 data += "Spawned";
321 }
322
323 if (rec->verified) {
324 if (rec->admin || rec->spawned) {
325 data += "/";
326 }
327
328 data += "Verified";
329 }
330 }
331
332 if (!data.size()) {
333 data = " ";
334 }
335}
336
337void WebStats::keyCallback(std::string& data, const std::string& key) {
338 bz_BasePlayerRecord* rec = NULL;

Callers 7

doUpdateMotionMethod · 0.85
tryTeleportingMethod · 0.85
restartMethod · 0.85
setExplodeMethod · 0.85
setTeleportMethod · 0.85
getHitCorrectionMethod · 0.85
keyCallbackMethod · 0.85

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected