#include "CollisionChecker.h" #include "Museum.h" CollisionChecker::CollisionChecker(Museum & m) : museum(m) { } void CollisionChecker::compare(Artist & a, Artist & b) { if (a.data.x + 0.5 < b.data.x) return; if (a.data.y + 0.5 < b.data.y) return; if (a.data.x > b.data.x + 0.5) return; if (a.data.y > b.data.y + 0.5) return; a.colliding = b.colliding = true; }