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

Function testAnimLimit

tests/game_character_anim.cpp:55–64  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

53}
54
55static void testAnimLimit(Game_Event& ch) {
56 const auto limit = Game_Character::GetStationaryAnimFrames(ch.GetMoveSpeed());
57
58 // For events not moving, anim count ticks up to the limit and then freezes until
59 // the character moves.
60 for (int i = 0; i < 255; ++i) {
61 testChar(ch, std::min(i, limit - 1), 1);
62 ForceUpdate(ch);
63 }
64}
65
66static void testAnimContinuous(Game_Event& ch) {
67 const auto limit = Game_Character::GetContinuousAnimFrames(ch.GetMoveSpeed());

Callers 1

testStandingFunction · 0.85

Calls 4

minFunction · 0.85
GetMoveSpeedMethod · 0.80
testCharFunction · 0.70
ForceUpdateFunction · 0.70

Tested by

no test coverage detected