Exemple #1
0
  private ResearchNode updateReference(ResearchMap map) {
    if (map.hasNode(name)) {
      return map.getNode(name);
    }

    return null;
  }
Exemple #2
0
  void setMap(ResearchMap map) {
    if (Objects.equals(mapName, map.getName())) {
      return;
    }

    if (locked) {
      throw new IllegalStateException("Cannot re-assign map of locked node " + name);
    }

    mapName = map.getName();
  }