| 398 | } |
| 399 | |
| 400 | void BattleAnimation::SetFrame(int frame) { |
| 401 | // Reset pending flash. |
| 402 | int real_frame = frame / 2; |
| 403 | screen_flash_timing = -1; |
| 404 | target_flash_timing = -1; |
| 405 | for (auto& timing: animation.timings) { |
| 406 | if (timing.frame > real_frame + 1) { |
| 407 | break; |
| 408 | } |
| 409 | ProcessAnimationFlash(timing); |
| 410 | } |
| 411 | |
| 412 | this->frame = frame; |
| 413 | } |
| 414 | |
| 415 | void BattleAnimation::SetInvert(bool inverted) { |
| 416 | invert = inverted; |
no outgoing calls
no test coverage detected