Ejemplo n.º 1
0
 /**
  * Checks if any target is inside of the building.
  *
  * @param targets Targets to check.
  */
 public void checkTargetsInside(ArrayList<LinkedList<Node>> targets) {
   // Check which targets that are inside of this building
   for (LinkedList<Node> list : targets) {
     for (Node node : list) {
       if (p.contains(node.getXPos(), node.getYPos())) {
         addInsideTarget(node);
       }
     }
   }
 }