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

Method added

plugins/serverSideBotSample/serverSideBotSample.cpp:138–148  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

136}
137
138void SimpleBotHandler::added(int playerIndex) {
139 UNUSED(playerIndex);
140 bz_debugMessage(3, "SimpleBotHandler::added");
141 std::string name = "dante_";
142 name += bz_format("%d", playerID);
143 setPlayerData(name.c_str(), NULL, "bot sample", eAutomaticTeam);
144 joinGame();
145
146 float vals[3] = {0};
147 waypoints.push_back(Waypoint(*this, vals));
148}
149
150void SimpleBotHandler::removed(void) {
151 bz_debugMessage(3, "SimpleBotHandler::removed");

Callers

nothing calls this directly

Calls 6

bz_debugMessageFunction · 0.85
bz_formatFunction · 0.85
WaypointClass · 0.85
c_strMethod · 0.80
joinGameFunction · 0.50
push_backMethod · 0.45

Tested by

no test coverage detected