bool GameObjectManager::GetGameObjectsWithAttribute(const noRTTI &type,dbCompositionList &list) { uint32 count = m_allEntities.size(); GameObject *pkGameObject; std::map<int, GameObject*>::iterator b = m_allEntities.begin(); std::map<int, GameObject*>::iterator e = m_allEntities.end(); for ( ; b != e; b++) { pkGameObject = (*b).second; if( pkGameObject->GetAttributeOfType(type) ) list.push_back( pkGameObject ); } if( list.size()>0 ) return true; return false; }