Room.cpp
/*pop out the specific object, used when the interaction is done*/
pop out the specific object, used when the interaction is done
pop out the specific object used when the interaction is done
bool Room::popObject(Object* obj) {
	bool ok = false;
	vector<Object*> tmp; tmp.clear();
	for (auto i : objects) {
		if (obj == i) {
			ok = true;
			continue;
		}
		tmp.push_back(i);
	}
	this -> setObjects(tmp);
	return ok;
}
bool Room :: popObject ( Object * obj ) { bool ok = false ; vector < Object * > tmp ; tmp . clear ( ) ; for ( auto i : objects ) { if ( obj == i ) { ok = true ; continue ; } tmp . push_back ( i ) ; } this -> setObjects ( tmp ) ; return ok ; }
pop out the specific object, used when the interaction is done
pop out the specific object used when the interaction is done