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

Method getBulletFromIndex

bwapi/BWAPI/Source/BWAPI/GameBullets.cpp:13–19  ·  view source on GitHub ↗

----------------------------------------------- GET BULLET FROM INDEX ------------------------------------

Source from the content-addressed store, hash-verified

11{
12 //----------------------------------------------- GET BULLET FROM INDEX ------------------------------------
13 BulletImpl* GameImpl::getBulletFromIndex(int index)
14 {
15 index &= 0x7F;
16 if (static_cast<unsigned>(index) < bulletArray.size())
17 return this->bulletArray[index];
18 return nullptr;
19 }
20 //--------------------------------------------- UPDATE BULLETS ---------------------------------------------
21 void GameImpl::updateBullets()
22 {

Callers 2

BWBulletToBWAPIBulletMethod · 0.80
updateSharedMemoryMethod · 0.80

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected