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

Method PlayerLoop

plugins/webadmin/loops.cpp:141–176  ·  view source on GitHub ↗

------------------PlayerLoop

Source from the content-addressed store, hash-verified

139
140//------------------PlayerLoop
141PlayerLoop::PlayerLoop(Templateiser& ts) : LoopHandler() {
142 ts.addLoop("players", this);
143 ts.addKey("playerid", this);
144 ts.addKey("playerbzid", this);
145 ts.addKey("playercallsign", this);
146 ts.addKey("playerguid", this);
147 ts.addKey("playerip", this);
148 ts.addKey("playerteam", this);
149 ts.addKey("playerversion", this);
150
151 ts.addKey("playerwins", this);
152 ts.addKey("playerlosses", this);
153 ts.addKey("playerscore", this);
154 ts.addKey("playerteamkills", this);
155 ts.addKey("playerrank", this);
156
157 ts.addIF("playerbzid", this);
158 ts.addIF("playerverified", this);
159 ts.addIF("playeradmin", this);
160
161 ts.addIF("playercanspawn", this);
162 ts.addIF("playerspawned", this);
163
164 ts.addKey("playerlag", this);
165 ts.addKey("playerjitter", this);
166 ts.addKey("playerpacketloss", this);
167
168 ts.addKey("playerflag", this);
169 ts.addKey("playerflagid", this);
170
171 ts.addIF("playerflag", this);
172
173 addNewPageCallback(this);
174
175 playerID = -1;
176}
177
178PlayerLoop::~PlayerLoop() {
179 removeNewPageCallback(this);

Callers

nothing calls this directly

Calls 4

addNewPageCallbackFunction · 0.85
addLoopMethod · 0.80
addKeyMethod · 0.80
addIFMethod · 0.80

Tested by

no test coverage detected