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

Method IsAnyMovePending

src/game_map.cpp:1881–1901  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1879}
1880
1881bool Game_Map::IsAnyMovePending() {
1882 auto check = [](auto& ev) {
1883 return ev.IsMoveRouteOverwritten() && !ev.IsMoveRouteFinished();
1884 };
1885 const auto map_id = GetMapId();
1886 if (check(*Main_Data::game_player)) {
1887 return true;
1888 }
1889 for (auto& vh: vehicles) {
1890 if (vh.GetMapId() == map_id && check(vh)) {
1891 return true;
1892 }
1893 }
1894 for (auto& ev: events) {
1895 if (check(ev)) {
1896 return true;
1897 }
1898 }
1899
1900 return false;
1901}
1902
1903void Game_Map::RemoveAllPendingMoves() {
1904 const auto map_id = GetMapId();

Callers

nothing calls this directly

Calls 4

checkClass · 0.85
IsMoveRouteFinishedMethod · 0.80
GetMapIdMethod · 0.45

Tested by

no test coverage detected