40 #ifndef actormanager_cpp
41 #define actormanager_cpp
43 #include "actormanager.h"
45 #include "Physics/physicsmanager.h"
63 TargetManager(Target) { }
83 ActorUpdateWork(NULL),
90 ActorUpdateWork(NULL),
116 Actor* Ret = (*ActFactIt).second->CreateActor( InstanceName, this->
ParentWorld, Params );
117 this->
Actors.push_back( Ret );
128 Actor* Ret = (*ActFactIt).second->CreateActor( SelfRoot, this->
ParentWorld );
129 this->
Actors.push_back( Ret );
138 return this->
Actors.at(Index);
145 if( (*ActIt)->GetName() == Name )
153 return this->
Actors.size();
159 if( ActIt != this->
Actors.end() )
163 (*ActFactIt).second->DestroyActor( (*ActIt) );
168 this->
Actors.erase(ActIt);
175 if( ActIt != this->
Actors.end() )
179 (*ActFactIt).second->DestroyActor( (*ActIt) );
184 this->
Actors.erase(ActIt);
194 (*ActFactIt).second->DestroyActor( (*ActIt) );
231 delete ActFactIt->second;
239 {
delete (*ActFactIt).second; }
285 {
return ManagerBase::MT_ActorManager; }
288 {
return "DefaultActorManager"; }
300 {
return "DefaultActorManager"; }
309 {
delete ToBeDestroyed; }