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

Function testNonPlayer

tests/game_character_moveto.cpp:73–86  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

71
72template <typename T>
73static void testNonPlayer(T& ch) {
74 ch.SetRemainingStep(256);
75 ch.SetJumping(true);
76 ch.SetJumping(true);
77 ch.SetStopCount(77);
78 ch.SetMaxStopCount(88);
79 ch.SetAnimCount(9);
80 ch.SetAnimFrame(2);
81 ch.SetSpriteGraphic("GRAPHIC", 1);
82
83 ch.MoveTo(static_cast<int>(map_id), 2, 3);
84
85 testChar(ch, 1, 2, 3, 0, true, 77, 88, 9, 2, "GRAPHIC", 1);
86}
87
88TEST_CASE("Vehicle") {
89 const MockGame mg(map_id);

Callers 1

Calls 9

SetRemainingStepMethod · 0.80
SetJumpingMethod · 0.80
SetStopCountMethod · 0.80
SetMaxStopCountMethod · 0.80
SetAnimCountMethod · 0.80
SetAnimFrameMethod · 0.80
SetSpriteGraphicMethod · 0.80
testCharFunction · 0.70
MoveToMethod · 0.45

Tested by

no test coverage detected