| 45 | } |
| 46 | |
| 47 | bool FxEngine::nextFx(u16 duration) { |
| 48 | bool ok = mEffects.next(mCurrId, &mCurrId, true); |
| 49 | if (!ok) { |
| 50 | return false; |
| 51 | } |
| 52 | setNextFx(mCurrId, duration); |
| 53 | return true; |
| 54 | } |
| 55 | |
| 56 | bool FxEngine::setNextFx(int index, u16 duration) { |
| 57 | if (!mEffects.has(index)) { |
no test coverage detected