| 73 | |
| 74 | template <typename... Args> |
| 75 | static void testMoveRouteMove(const Game_Character& ch, |
| 76 | int x, int y, int remaining_step, |
| 77 | Args&&... args) { |
| 78 | |
| 79 | CAPTURE(x); |
| 80 | CAPTURE(y); |
| 81 | CAPTURE(remaining_step); |
| 82 | |
| 83 | REQUIRE_EQ(ch.GetX(), x); |
| 84 | REQUIRE_EQ(ch.GetY(), y); |
| 85 | REQUIRE_GE(ch.GetRemainingStep(), 0); |
| 86 | REQUIRE_EQ(ch.GetRemainingStep(), remaining_step); |
| 87 | REQUIRE(!ch.IsJumping()); |
| 88 | if (remaining_step > 0) { |
| 89 | REQUIRE(ch.IsMoving()); |
| 90 | } else { |
| 91 | REQUIRE(ch.IsStopping()); |
| 92 | REQUIRE(!ch.IsMoving()); |
| 93 | } |
| 94 | testMoveRouteDir(ch, std::forward<Args>(args)...); |
| 95 | } |
| 96 | |
| 97 | template <typename... Args> |
| 98 | static void testMoveRouteJump(const Game_Character& ch, |
no test coverage detected