| 63 | } |
| 64 | |
| 65 | void BattleAnimation::Update() { |
| 66 | if (!IsDone() && (frame & 1) == 0) { |
| 67 | // Lookup any timed SFX (SE/flash/shake) data for this frame |
| 68 | for (auto& timing: animation.timings) { |
| 69 | if (timing.frame == GetRealFrame() + 1) { |
| 70 | ProcessAnimationTiming(timing); |
| 71 | } |
| 72 | } |
| 73 | } |
| 74 | |
| 75 | UpdateScreenFlash(); |
| 76 | UpdateTargetFlash(); |
| 77 | |
| 78 | SetFlashEffect(Main_Data::game_screen->GetFlashColor()); |
| 79 | |
| 80 | frame++; |
| 81 | } |
| 82 | |
| 83 | void BattleAnimation::OnBattleSpriteReady(FileRequestResult* result) { |
| 84 | BitmapRef bitmap = Cache::Battle(result->file); |
nothing calls this directly
no test coverage detected