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

Function testJumping

tests/game_character_anim.cpp:164–179  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

162}
163
164static void testJumping(AnimType at, int speed) {
165 const MockGame mg(map_id);
166
167 auto& ch = GetEvent(at, speed);
168
169 CAPTURE(at);
170 CAPTURE(speed);
171
172 // When event is jumping
173 if (at == lcf::rpg::EventPage::AnimType_spin) {
174 // Continues spinning even when jumping
175 testAnimSpin(ch, false, true);
176 } else {
177 testAnimJump(ch);
178 }
179}
180
181static void testMoving(AnimType at, int speed) {
182 const MockGame mg(map_id);

Callers 1

Calls 2

testAnimSpinFunction · 0.85
testAnimJumpFunction · 0.85

Tested by

no test coverage detected