| 64 | } |
| 65 | |
| 66 | static 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 | |
| 78 | static void testAnimSpin(Game_Event& ch, bool move = false, bool jump = false) { |
| 79 | const auto limit = Game_Character::GetSpinAnimFrames(ch.GetMoveSpeed()); |
no test coverage detected