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

Method isEnemy

bwapi/BWAPIClient/Source/PlayerImpl.cpp:41–46  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

39 return self->isAlly[player->getID()];
40 }
41 bool PlayerImpl::isEnemy(const Player player) const
42 {
43 if ( !player )
44 return false;
45 return self->isEnemy[player->getID()];
46 }
47 bool PlayerImpl::isNeutral() const
48 {
49 return self->isNeutral;

Callers 2

onMatchStartMethod · 0.45
onMatchFrameMethod · 0.45

Calls 1

getIDMethod · 0.45

Tested by

no test coverage detected