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

Method PrependFlashes

src/transition.cpp:61–71  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

59}
60
61void Transition::PrependFlashes(int r, int g, int b, int p, int duration, int iterations) {
62 flash.red = r;
63 flash.green = g;
64 flash.blue = b;
65 flash.current_level = 0.0;
66 flash.time_left = 0;
67
68 flash_power = p;
69 flash_duration = std::max(1, duration);
70 flash_iterations = std::max(1, iterations);
71}
72
73void Transition::Init(Type type, Scene *linked_scene, int duration, bool next_erase) {
74 // Triggering multiple transitions on a single frame is a bug.

Callers 1

TransitionOutMethod · 0.80

Calls 1

maxFunction · 0.85

Tested by

no test coverage detected