| 87 | } |
| 88 | |
| 89 | bool 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 | |
| 98 | Unit* Bullet::getEmitter() const noexcept { |
| 99 | return _emitter; |
nothing calls this directly
no test coverage detected