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

Method SetFrame

src/battle_animation.cpp:400–413  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

398}
399
400void 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
415void BattleAnimation::SetInvert(bool inverted) {
416 invert = inverted;

Callers 2

UpdateMethod · 0.80
ShowBattleAnimationMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected