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

Method isVictorious

bwapi/BWAPI/Source/BWAPI/PlayerImpl.cpp:111–116  ·  view source on GitHub ↗

--------------------------------------------- IS VICTORIOUS ----------------------------------------------

Source from the content-addressed store, hash-verified

109 }
110 //--------------------------------------------- IS VICTORIOUS ----------------------------------------------
111 bool PlayerImpl::isVictorious() const
112 {
113 if ( index >= 8 )
114 return false;
115 return BW::BWDATA::PlayerVictory[index] == 3;
116 }
117 //--------------------------------------------- IS DEFEATED ------------------------------------------------
118 bool PlayerImpl::isDefeated() const
119 {

Callers 3

updateMethod · 0.45
updateSharedMemoryMethod · 0.45
onStartMethod · 0.45

Calls

no outgoing calls

Tested by 1

onStartMethod · 0.36