Creates a new place from this place a new id will be created and connections to other places not copied @return
()
| 462 | * @return |
| 463 | */ |
| 464 | public Place duplicate() { |
| 465 | final Place place = new Place(name, getX(), getY(), null); |
| 466 | |
| 467 | place.placeGroup = placeGroup; |
| 468 | place.recLevelMax = recLevelMax; |
| 469 | place.recLevelMin = recLevelMin; |
| 470 | place.infoRing = infoRing; |
| 471 | place.flags = (TreeMap<String, Boolean>) flags.clone(); |
| 472 | place.comments = comments; |
| 473 | |
| 474 | return place; |
| 475 | } |
| 476 | |
| 477 | /** |
| 478 | * Resets the breadth search data |