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

Method isLobbyType

bwapi/BWAPILIB/Source/PlayerType.cpp:31–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29 Neutral, Closed, PlayerLeft, ComputerLeft, Unknown };
30 }
31 bool PlayerType::isLobbyType() const
32 {
33 return this->getID() == PlayerTypes::Enum::EitherPreferComputer ||
34 this->getID() == PlayerTypes::Enum::EitherPreferHuman ||
35 this->getID() == PlayerTypes::Enum::RescuePassive ||
36 this->getID() == PlayerTypes::Enum::RescueActive ||
37 this->getID() == PlayerTypes::Enum::Neutral;
38 }
39 bool PlayerType::isGameType() const
40 {
41 return this->getID() == PlayerTypes::Enum::Player ||

Callers 1

writePlayerTypeInfoFunction · 0.80

Calls 1

getIDMethod · 0.45

Tested by

no test coverage detected