ActorID Stage::new_actor() { ActorID result = ActorManager::manager_new(); actor(result)->set_parent(this); //Tell everyone about the new actor signal_actor_created_(result); return result; }
ActorID Stage::new_actor(MeshID mid) { ActorID result = ActorManager::manager_new(); //If a mesh was specified, set it if(mid) { actor(result).set_mesh(mid); } //Tell everyone about the new actor signal_actor_created_(result); return result; }
ActorID Stage::new_actor(MeshID mid, bool make_responsive, bool make_collidable) { ActorID result = ActorManager::manager_new(); actor(result)->set_parent(this); //If a mesh was specified, set it if(mid) { actor(result)->set_mesh(mid); } //Tell everyone about the new actor signal_actor_created_(result); return result; }