Interface Island

    • Method Detail

      • toString

        java.lang.String toString()
        Returns a String representation of this Island object.
        Overrides:
        toString in class java.lang.Object
      • regions

        java.util.Collection<Region> regions()
        Returns an unmodifiable collection of all the regions in this container.
      • getRegion

        Region getRegion​(ID key)
        Retrieve a region in this container by id.
      • invalidateRegions

        void invalidateRegions()
        Informs this container that a region was added or removed. It is mandatory that this function is called every time a region is added or removed from this container for keeping the objects returned by the getRegion() and regions() methods consistent.
      • setRegions

        void setRegions​(java.util.Map<CoordinateID,​Region> r)
        Sets the Map of regions. This shall solely called by GameData.postProcess.