MCPcopy Create free account
hub / github.com/bwapi/bwapi / showForces

Function showForces

bwapi/ExampleAIClient/Source/ExampleAIClient.cpp:263–273  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

261}
262
263void showForces()
264{
265 Forceset forces=Broodwar->getForces();
266 for(auto f : forces)
267 {
268 Playerset players = f->getPlayers();
269 Broodwar << "Force " << f->getName() << " has the following players:" << std::endl;
270 for(auto p : players)
271 Broodwar << " - Player [" << p->getID() << "]: " << p->getName() << std::endl;
272 }
273}

Callers 1

mainFunction · 0.85

Calls 3

getPlayersMethod · 0.45
getNameMethod · 0.45
getIDMethod · 0.45

Tested by

no test coverage detected