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

Function CheckWayTestCollideEvent

src/game_map.cpp:755–765  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

753
754template <typename T>
755static bool CheckWayTestCollideEvent(int x, int y, const Game_Character& self, T& other, bool self_conflict) {
756 if (&self == &other) {
757 return false;
758 }
759
760 if (!other.IsInPosition(x, y)) {
761 return false;
762 }
763
764 return WouldCollide(self, other, self_conflict);
765}
766
767template <typename T>
768static bool MakeWayCollideEvent(int x, int y, const Game_Character& self, T& other, bool self_conflict) {

Callers 1

CheckOrMakeWayExMethod · 0.85

Calls 2

WouldCollideFunction · 0.85
IsInPositionMethod · 0.45

Tested by

no test coverage detected