8         m_EntityParent = entity_parent;
 
   11     Component GetComponent(
int comp_type, 
string extended_class_name=
"")
 
   15             Component.LogErrorBadCompType(comp_type, 
"EntityAI.GetComponent(int comp_type)");
 
   19         if ( !IsComponentAlreadyExist(comp_type) )
 
   21             CreateComponent(comp_type, extended_class_name);
 
   24         return m_Components[comp_type];     
 
   27     bool DeleteComponent(
int comp_type)
 
   29         if ( IsComponentAlreadyExist(comp_type) )
 
   31             m_Components[comp_type] = NULL;
 
   38     private Component CreateComponent(
int comp_type, 
string extended_class_name=
"")
 
   42             Component.LogErrorBadCompType(comp_type, 
"EntityAI->CreateComponent(int comp_type)");
 
   46         if ( IsComponentAlreadyExist(comp_type) )
 
   48             Component.LogWarningAlredyExist(comp_type, 
"EntityAI->CreateComponent(int comp_type)");
 
   49             return m_Components[comp_type];
 
   53         string clas_name = extended_class_name;
 
   55         if ( clas_name == 
string.
Empty )
 
   57             clas_name = 
Component.GetNameByType(comp_type);
 
   62         comp.SetParentEntityAI(m_EntityParent);
 
   65         m_Components[comp_type] = comp;
 
   72     bool IsComponentAlreadyExist(
int comp_type)
 
   74         if ( m_Components[comp_type] != NULL )