Interface ArchetypeSet<G extends GameObject<G,​A,​R>,​A extends MapArchObject<A>,​R extends Archetype<G,​A,​R>>

  • All Known Implementing Classes:
    DefaultArchetypeSet

    public interface ArchetypeSet<G extends GameObject<G,​A,​R>,​A extends MapArchObject<A>,​R extends Archetype<G,​A,​R>>
    Interface that captures similarities between different ArchetypeSet implementations.
    • Method Detail

      • isLoadedFromArchive

        boolean isLoadedFromArchive()
        Returns whether the Archetypes in this ArchetypeSet were loaded from an archive.
        Returns:
        true if loaded from an archive, otherwise false
      • getArchetypeCount

        int getArchetypeCount()
        Returns the number of Archetypes available.
        Returns:
        the number of Archetypes available
      • getOrCreateArchetype

        @NotNull
        R getOrCreateArchetype​(@NotNull
                               @NotNull java.lang.String archetypeName)
        Returns an archetype by its name. If this archetype does not exist, return an Archetype which has Archetype.isUndefinedArchetype() set.
        Parameters:
        archetypeName - the archetype name
        Returns:
        the archetype
        See Also:
        getArchetype(String)
      • getArchetypes

        @NotNull
        @NotNull java.util.Collection<R> getArchetypes()
        Returns a read-only collection of all Archetypes.
        Returns:
        a read-only collection of all archetypes
      • connectFaces

        void connectFaces()
      • setLoadedFromArchive

        void setLoadedFromArchive​(boolean loadedFromArchive)
        Sets whether Archetypes were loaded from an archive.
        Parameters:
        loadedFromArchive - true when loaded from archive, otherwise false
        See Also:
        isLoadedFromArchive()
      • getImageSet

        @Nullable
        @Nullable java.lang.String getImageSet()
        Returns the image set.
        Returns:
        the image set or null