gameEngine/gameEngine/AbstractScene.cpp
//gets a vector of sprites that all share the given name
gets a vector of sprites that all share the given name
gets a vector of sprites that all share the given name
std::vector<AbstractSprite*> AbstractScene::getSprite(std::string name)
{
	std::vector<AbstractSprite*> tempVec;
	for (int i = 0; i < Sprites.size(); i++)
	{
		if (Sprites.at(i)->getName() == name)
			tempVec.push_back(Sprites[i]);
	}
	return tempVec;
}
std :: vector < AbstractSprite * > AbstractScene :: getSprite ( std :: string name ) { std :: vector < AbstractSprite * > tempVec ; for ( int i = 0 ; i < Sprites . size ( ) ; i ++ ) { if ( Sprites . at ( i ) -> getName ( ) == name ) tempVec . push_back ( Sprites [ i ] ) ; } return tempVec ; }
gets a vector of sprites that all share the given name
gets a vector of sprites that all share the given name