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

Method CheckEventCollision

src/game_event.cpp:356–369  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

354}
355
356bool Game_Event::CheckEventCollision() {
357 if (GetTrigger() == lcf::rpg::EventPage::Trigger_collision
358 && GetLayer() != lcf::rpg::EventPage::Layers_same
359 && !Main_Data::game_player->IsMoveRouteOverwritten()
360 && !Game_Map::GetInterpreter().IsRunning()
361 && Main_Data::game_player->GetX() == GetX()
362 && Main_Data::game_player->GetY() == GetY())
363 {
364 ScheduleForegroundExecution(false, true);
365 SetStopCount(0);
366 return true;
367 }
368 return false;
369}
370
371void Game_Event::CheckCollisonOnMoveFailure() {
372 if (Game_Map::GetInterpreter().IsRunning()) {

Callers

nothing calls this directly

Calls 4

IsRunningMethod · 0.80
GetXMethod · 0.45
GetYMethod · 0.45

Tested by

no test coverage detected