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

Method sendMessage

src/bzadmin/BZAdminClient.cpp:562–577  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

560
561
562void BZAdminClient::sendMessage(const std::string& msg,
563 PlayerId target) {
564 // local commands:
565 // /set lists all BZDB variables
566 if (msg == "/set") {
567 if (ui != NULL) {
568 BZDB.iterate(listSetVars, this);
569 }
570 return;
571 }
572
573 char buffer[MessageLen];
574 memset(buffer, 0, MessageLen);
575 strncpy(buffer, msg.c_str(), MessageLen - 1);
576 sLink.sendMessage(target, buffer);
577}
578
579
580// NOTE: This function assumes that there is only two message types. It is

Callers 8

doKeyPlayingFunction · 0.45
handleKilledMessageFunction · 0.45
handleCaptureFlagFunction · 0.45
handleQueryGLFunction · 0.45
keyPressMethod · 0.45
keyPressMethod · 0.45
operator()Method · 0.45
mainFunction · 0.45

Calls 2

c_strMethod · 0.80
iterateMethod · 0.45

Tested by

no test coverage detected