MCPcopy Create free account
hub / github.com/IppClub/Dora-SSR / update

Method update

Source/Platformer/Bullet.cpp:89–96  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

87}
88
89bool Bullet::update(double deltaTime) {
90 if (getGroup() == SharedData.getGroupHide()) return true;
91 _current += s_cast<float>(deltaTime);
92 if (_current >= _lifeTime) {
93 Bullet::destroy();
94 }
95 return Body::update(deltaTime);
96}
97
98Unit* Bullet::getEmitter() const noexcept {
99 return _emitter;

Callers

nothing calls this directly

Calls 3

getGroupHideMethod · 0.80
destroyFunction · 0.50
updateFunction · 0.50

Tested by

no test coverage detected