gameEngine/gameEngine/Sprite.cpp
//iterate through all this sprite's colliders, and have it check if it's colliding with another specified sprite's colliders
iterate through all this sprite's colliders, and have it check if it's colliding with another specified sprite's colliders
iterate through all this sprite ' s colliders and have it check if it ' s colliding with another specified sprite ' s colliders
bool Sprite::collide(AbstractSprite* otherSprite)
{
	for (int i = 0; i < this->colliders_.size(); i++)
	{
		if (this->colliders_.at(i)->collide(otherSprite->getColliders()))
		{
			return true;
		}
	}
	return false;
}
bool Sprite :: collide ( AbstractSprite * otherSprite ) { for ( int i = 0 ; i < this -> colliders_ . size ( ) ; i ++ ) { if ( this -> colliders_ . at ( i ) -> collide ( otherSprite -> getColliders ( ) ) ) { return true ; } } return false ; }
iterate through all this sprite's colliders, and have it check if it's colliding with another specified sprite's colliders
iterate through all this sprite ' s colliders and have it check if it ' s colliding with another specified sprite ' s colliders
//AbstractCollider* test = otherSprite->getColliders().at(i); //if we get here, no collision detected, return false