bool CollidePixel(int obj1, int obj2) { int s1 = GetObjectSprite(obj1); int s2 = GetObjectSprite(obj2); int x1, y1; GetObjectLocation(obj1, &x1, &y1); int x2, y2; GetObjectLocation(obj2, &x2, &y2); return CollideSprite(s1, s2, x2-x1, y2-y1); }
const ProtoModel* GetObjectSprite(const std::string& objName) { return GetObjectSprite(QString::fromStdString(objName)); }