Exemplo n.º 1
0
  /**
   * Notify this actor node that it has been removed from the BSPNode. It must remove itself from
   * the linked list of actor nodes for the actor.
   */
  public void removed() {
    if (prev == null) {
      IBSPColChecker.setNodeForActor(actor, next);
    } else {
      prev.next = next;
    }

    if (next != null) {
      next.prev = prev;
    }
  }
Exemplo n.º 2
0
  public ActorNode(Actor actor, BSPNode node) {
    this.actor = actor;
    this.node = node;

    // insert into linked list
    ActorNode first = IBSPColChecker.getNodeForActor(actor);
    this.next = first;
    IBSPColChecker.setNodeForActor(actor, this);
    if (next != null) {
      next.prev = this;
    }

    mark = true;
  }