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

Method isAlly

bwapi/BWAPIClient/Source/PlayerImpl.cpp:35–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33 return Broodwar->getForce(self->force);
34 }
35 bool PlayerImpl::isAlly(const Player player) const
36 {
37 if ( !player )
38 return false;
39 return self->isAlly[player->getID()];
40 }
41 bool PlayerImpl::isEnemy(const Player player) const
42 {
43 if ( !player )

Callers 2

onMatchStartMethod · 0.45
onMatchFrameMethod · 0.45

Calls 1

getIDMethod · 0.45

Tested by

no test coverage detected