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

Method isDefeated

bwapi/BWAPI/Source/BWAPI/PlayerImpl.cpp:118–126  ·  view source on GitHub ↗

--------------------------------------------- IS DEFEATED ------------------------------------------------

Source from the content-addressed store, hash-verified

116 }
117 //--------------------------------------------- IS DEFEATED ------------------------------------------------
118 bool PlayerImpl::isDefeated() const
119 {
120 if ( index >= 8 )
121 return false;
122 return BW::BWDATA::PlayerVictory[index] == 1 ||
123 BW::BWDATA::PlayerVictory[index] == 2 ||
124 BW::BWDATA::PlayerVictory[index] == 4 ||
125 BW::BWDATA::PlayerVictory[index] == 6;
126 }
127 //--------------------------------------------- UPDATE -----------------------------------------------------
128 void PlayerImpl::updateData()
129 {

Callers 4

updateMethod · 0.45
onGameStartMethod · 0.45
updateSharedMemoryMethod · 0.45
onStartMethod · 0.45

Calls

no outgoing calls

Tested by 1

onStartMethod · 0.36