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

Method isGameType

bwapi/BWAPILIB/Source/PlayerType.cpp:39–46  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37 this->getID() == PlayerTypes::Enum::Neutral;
38 }
39 bool PlayerType::isGameType() const
40 {
41 return this->getID() == PlayerTypes::Enum::Player ||
42 this->getID() == PlayerTypes::Enum::Computer ||
43 this->getID() == PlayerTypes::Enum::RescuePassive ||
44 this->getID() == PlayerTypes::Enum::RescueActive ||
45 this->getID() == PlayerTypes::Enum::Neutral;
46 }
47 const PlayerType::set& PlayerTypes::allPlayerTypes()
48 {
49 return PlayerTypeSet::playerTypeSet;

Callers 1

writePlayerTypeInfoFunction · 0.80

Calls 1

getIDMethod · 0.45

Tested by

no test coverage detected