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

Method AddClient

src/clientbase/EventHandler.cpp:161–172  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

159
160
161void EventHandler::AddClient(EventClient* ec) {
162 if (ec->GetName().empty()) {
163 debugf(0, "EventClients must have valid names");
164 return;
165 }
166
167 if (!clientList.insert(ec)) {
168 debugf(0, "Duplicate EventClient name: %s\n");
169 return;
170 }
171 clientSet.insert(ec);
172}
173
174
175void EventHandler::RemoveClient(EventClient* ec) {

Callers 4

LuaRulesMethod · 0.80
LuaUserMethod · 0.80
LuaWorldMethod · 0.80
LuaBzOrgMethod · 0.80

Calls 4

debugfFunction · 0.85
emptyMethod · 0.45
GetNameMethod · 0.45
insertMethod · 0.45

Tested by

no test coverage detected