Exemplo n.º 1
0
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;
}
Exemplo n.º 2
0
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;
}
Exemplo n.º 3
0
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;
}