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

Function testAnimContinuous

tests/game_character_anim.cpp:66–76  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

64}
65
66static void testAnimContinuous(Game_Event& ch) {
67 const auto limit = Game_Character::GetContinuousAnimFrames(ch.GetMoveSpeed());
68
69 // Continuous always animates
70 for (int i = 0; i < 255; ++i) {
71 auto count = i % limit;
72 auto frame = ((i / limit) + 1) % 4;
73 testChar(ch, count, frame);
74 ForceUpdate(ch);
75 }
76}
77
78static void testAnimSpin(Game_Event& ch, bool move = false, bool jump = false) {
79 const auto limit = Game_Character::GetSpinAnimFrames(ch.GetMoveSpeed());

Callers 1

testStandingFunction · 0.85

Calls 3

GetMoveSpeedMethod · 0.80
testCharFunction · 0.70
ForceUpdateFunction · 0.70

Tested by

no test coverage detected