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

Method updateShot

src/clientbase/ShotPath.cpp:111–124  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

109
110
111void ShotPath::updateShot(float dt) {
112 // get new time step and set current time
113 currentTime += dt;
114
115 // update shot
116 if (!expired) {
117 if (expiring) {
118 setExpired();
119 }
120 else {
121 getStrategy()->update(dt);
122 }
123 }
124}
125
126
127void ShotPath::setReloadTime(float _reloadTime) {

Callers

nothing calls this directly

Calls 1

updateMethod · 0.45

Tested by

no test coverage detected