Exemple #1
0
//unit to hard codde point
bool checkCollideUH(unit U, float ox, float oy, float or)
{
	Point p;
	p.x = ox;
	p.y = oy;

	return theCollide(U.getPosition(), p, U.getRadius(), or);
}
Exemple #2
0
//unit to unit
bool checkCollideUU(unit U1, unit U2)
{
	return (theCollide(U1.getPosition(), U2.getPosition(), U1.getRadius(), U2.getRadius()));
}
Exemple #3
0
//player to unit
bool checkCollidePU(player P, unit U)
{
	return (theCollide(P.getPosition(), U.getPosition(), P.getRadius(), U.getRadius()));
}