Package net.sf.gridarta.model.resource
Class AbstractCollectedResourcesReader<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>>
- java.lang.Object
-
- net.sf.gridarta.model.resource.AbstractResourcesReader<G>
-
- net.sf.gridarta.model.resource.AbstractCollectedResourcesReader<G,A,R>
-
- Direct Known Subclasses:
CollectedResourcesReader,CollectedResourcesReader,CollectedResourcesReader
public abstract class AbstractCollectedResourcesReader<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>> extends AbstractResourcesReader<G>
Abstract base class forAbstractResourcesReadersthat read from collected files.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractCollectedResourcesReader(@NotNull java.io.File collectedDirectory, @Nullable java.lang.String imageSet, @NotNull ArchetypeSet<G,A,R> archetypeSet, @NotNull AbstractArchetypeParser<G,A,R,?> archetypeParser, @NotNull AnimationObjects animationObjects, @NotNull FaceObjects faceObjects, @NotNull java.lang.String animTreeFile, @NotNull java.lang.String archetypesFile, @NotNull AbstractAnimationObjectsReader animationObjectsReader)Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidloadAnimations(@NotNull ErrorView errorView)Loads all animations.protected voidloadArchetypes(@NotNull ErrorView errorView, @NotNull java.util.List<G> invObjects)Loads all archetypes.protected @NotNull FaceProviderloadFacesCollection(@NotNull ErrorView errorView)Loads all faces.-
Methods inherited from class net.sf.gridarta.model.resource.AbstractResourcesReader
addPNGFace, loadAnimationsFromCollect, loadAnimTree, read
-
-
-
-
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 directoryimageSet- the active image set ornullarchetypeSet- the archetype set to updatearchetypeParser- the archetype parser to useanimationObjects- the animation objects instancefaceObjects- the face objects instanceanimTreeFile- the name of the animation tree information filearchetypesFile- the name of the collected archetypes fileanimationObjectsReader- 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 problemsinvObjects- 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
-
-