Exemplo n.º 1
0
 /** Add this entity to the collision manager */
 protected final void addToCollisionManager() {
   if (node != null) {
     if (!node.remove(this)) {
       assert false : "Entity " + this + " was not found!";
     }
   }
   node = COLLISIONMANAGER.add(this);
   if (node == null) {
     node = COLLISIONMANAGER;
     COLLISIONMANAGER.store(this);
   }
 }