MCPcopy Create free account
hub / github.com/EasyRPG/Player / Update

Method Update

src/battle_animation.cpp:65–81  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

63}
64
65void 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
83void BattleAnimation::OnBattleSpriteReady(FileRequestResult* result) {
84 BitmapRef bitmap = Cache::Battle(result->file);

Callers

nothing calls this directly

Calls 1

GetFlashColorMethod · 0.45

Tested by

no test coverage detected