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

Function testMoveRouteDir

tests/move_route.cpp:62–72  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

60
61template <typename... Args>
62static void testMoveRouteDir(const Game_Character& ch,
63 int dir, int face,
64 Args&&... args) {
65
66 CAPTURE(dir);
67 CAPTURE(face);
68
69 REQUIRE_EQ(ch.GetDirection(), dir);
70 REQUIRE_EQ(ch.GetFacing(), face);
71 testMoveRoute(ch, std::forward<Args>(args)...);
72}
73
74template <typename... Args>
75static void testMoveRouteMove(const Game_Character& ch,

Callers 4

testMoveRouteMoveFunction · 0.85
testMoveRouteJumpFunction · 0.85
testTurnFunction · 0.85
move_route.cppFile · 0.85

Calls 3

testMoveRouteFunction · 0.85
GetFacingMethod · 0.80
GetDirectionMethod · 0.45

Tested by

no test coverage detected