/* * $Id$ * * [ Description ] * */ #include "Behavioural/include/Component.h" namespace morpheo { namespace behavioural { Entity * Component::find_entity (string name) { if (_entity->get_name() == name) return _entity; else if (_list_component->empty()== false) { list::iterator i = _list_component->begin(); while (i != _list_component->end()) { if ((*i)->get_name() == name) { return *i; break; } ++i; } } return NULL; }; }; // end namespace behavioural }; // end namespace morpheo