private boolean checkPath(SpeakerNPC npc,StringBuilder msg){
  FixedPath path=npc.getPath();
  if (path == null) {
    return true;
  }
  boolean ok=true;
  if (!path.isLoop()) {
    ok=false;
    msg.append(npc.getName());
    msg.append(" has a path that is not a loop.\n");
  }
  if (!checkNodes(npc,path,msg)) {
    ok=false;
  }
  return ok;
}

private boolean checkPath ( SpeakerNPC npc , StringBuilder msg ) { FixedPath path = npc . getPath ( ) ; if ( path == null ) { return true ; } boolean ok = true ; if ( ! path . isLoop ( ) ) { ok = false ; msg . append ( npc . getName ( ) ) ; msg . append ( " has a path that is not a loop.\n" ) ; } if ( ! checkNodes ( npc , path , msg ) ) { ok = false ; } return ok ; }
check the path of an npc .
