Class AbstractCollectedResourcesReader<G extends GameObject<G,​A,​R>,​A extends MapArchObject<A>,​R extends Archetype<G,​A,​R>>

    • Constructor Detail

      • AbstractCollectedResourcesReader

        protected AbstractCollectedResourcesReader​(@NotNull
                                                   @NotNull java.io.File collectedDirectory,
                                                   @Nullable
                                                   @Nullable java.lang.String imageSet,
                                                   @NotNull
                                                   @NotNull ArchetypeSet<G,​A,​R> archetypeSet,
                                                   @NotNull
                                                   @NotNull AbstractArchetypeParser<G,​A,​R,​?> archetypeParser,
                                                   @NotNull
                                                   @NotNull AnimationObjects animationObjects,
                                                   @NotNull
                                                   @NotNull FaceObjects faceObjects,
                                                   @NotNull
                                                   @NotNull java.lang.String animTreeFile,
                                                   @NotNull
                                                   @NotNull java.lang.String archetypesFile,
                                                   @NotNull
                                                   @NotNull AbstractAnimationObjectsReader animationObjectsReader)
        Creates a new instance.
        Parameters:
        collectedDirectory - the collected directory
        imageSet - the active image set or null
        archetypeSet - the archetype set to update
        archetypeParser - the archetype parser to use
        animationObjects - the animation objects instance
        faceObjects - the face objects instance
        animTreeFile - the name of the animation tree information file
        archetypesFile - the name of the collected archetypes file
        animationObjectsReader - the animation objects reader instance to use
    • Method Detail

      • loadAnimations

        protected void loadAnimations​(@NotNull
                                      @NotNull ErrorView errorView)
        Loads all animations.
        Parameters:
        errorView - the error view for reporting problems
      • loadArchetypes

        protected void loadArchetypes​(@NotNull
                                      @NotNull ErrorView errorView,
                                      @NotNull
                                      @NotNull java.util.List<G> invObjects)
        Loads all archetypes.
        Parameters:
        errorView - the error view for reporting problems
        invObjects - all read archetypes are added to this list
      • loadFacesCollection

        @NotNull
        protected @NotNull FaceProvider loadFacesCollection​(@NotNull
                                                            @NotNull ErrorView errorView)
        Loads all faces.
        Parameters:
        errorView - the error view for reporting problems
        Returns:
        the face provider for accessing the read faces