const AnimationStateSet* states = robot->getAllAnimationStates(); if (states) { for (AnimationStateSet::const_iterator iter = states->begin();iter != states->end();++iter) { LogManager::getSingleton().logMessage("Entity "+robot->getName()+" has state "+iter->first); } } else { LogManager::getSingleton().logMessage("Entity "+robot->getName()+" has no state"); }