| 44 | } |
| 45 | |
| 46 | static void testPlayer(Game_Player& ch) { |
| 47 | ch.SetRemainingStep(256); |
| 48 | ch.SetJumping(true); |
| 49 | ch.SetStopCount(77); |
| 50 | ch.SetMaxStopCount(88); |
| 51 | ch.SetAnimCount(9); |
| 52 | ch.SetAnimFrame(2); |
| 53 | ch.SetTransparency(7); |
| 54 | ch.SetSpriteGraphic("GRAPHIC", 1); |
| 55 | |
| 56 | ch.SetTotalEncounterRate(50); |
| 57 | ch.SetMenuCalling(true); |
| 58 | ch.SetEncounterCalling(true); |
| 59 | |
| 60 | ch.MoveTo(static_cast<int>(map_id), 2, 3); |
| 61 | |
| 62 | testChar(ch, 1, 2, 3, 0, true, 77, 88, 9, 2, "", 0); |
| 63 | |
| 64 | REQUIRE_EQ(ch.GetTotalEncounterRate(), 0); |
| 65 | REQUIRE_EQ(ch.GetTransparency(), 0); |
| 66 | REQUIRE(!ch.IsMenuCalling()); |
| 67 | |
| 68 | // This flag is not cleared. |
| 69 | REQUIRE(ch.IsEncounterCalling()); |
| 70 | } |
| 71 | |
| 72 | template <typename T> |
| 73 | static void testNonPlayer(T& ch) { |
no test coverage detected