MCPcopy Create free account
hub / github.com/BZFlag-Dev/bzflag / updateShots

Function updateShots

src/clientbase/playing.cpp:498–511  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

496
497
498void updateShots(const float dt) {
499 // update other tank's shots
500 for (int i = 0; i < curMaxPlayers; i++) {
501 if (remotePlayers[i]) {
502 remotePlayers[i]->updateShots(dt);
503 }
504 }
505
506 // update servers shots
507 const World* _world = World::getWorld();
508 if (_world) {
509 _world->getWorldWeapons()->updateShots(dt);
510 }
511}
512
513
514void setTankFlags() {

Callers 2

updatePositionsFunction · 0.85
updatePositionsFunction · 0.85

Calls 2

getWorldWeaponsMethod · 0.80
updateShotsMethod · 0.45

Tested by

no test coverage detected