gameEngine/gameEngine/Sprite.cpp
//add box collider to the sprite. pos is assumed on sprite
add box collider to the sprite. pos is assumed on sprite
add box collider to the sprite . pos is assumed on sprite
void Sprite::addBoxCollider(std::string name, int w, int h)
{
	BoxCollider *temp = new BoxCollider(name, *this, w, h);
	temp->setPosition(this->Position);
	this->colliders_.push_back(temp);
}
void Sprite :: addBoxCollider ( std :: string name , int w , int h ) { BoxCollider * temp = new BoxCollider ( name , * this , w , h ) ; temp -> setPosition ( this -> Position ) ; this -> colliders_ . push_back ( temp ) ; }
add box collider to the sprite.
add box collider to the sprite .