public abstract class AbstractCollectedResourcesReader<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>> extends AbstractResourcesReader<G>
AbstractResourcesReaders
that read from collected files.Modifier | Constructor and Description |
---|---|
protected |
AbstractCollectedResourcesReader(java.io.File collectedDirectory,
java.lang.String imageSet,
ArchetypeSet<G,A,R> archetypeSet,
AbstractArchetypeParser<G,A,R,?> archetypeParser,
AnimationObjects animationObjects,
FaceObjects faceObjects,
java.lang.String animTreeFile,
java.lang.String archetypesFile)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
protected void |
loadAnimations(ErrorView errorView)
Loads all animations.
|
protected void |
loadArchetypes(ErrorView errorView,
java.util.List<G> invObjects)
Loads all archetypes.
|
protected FaceProvider |
loadFacesCollection(ErrorView errorView)
Loads all faces.
|
addPNGFace, loadAnimationsFromCollect, loadAnimTree, read
protected AbstractCollectedResourcesReader(@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)
collectedDirectory
- the collected directoryimageSet
- the active image set or null
archetypeSet
- 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 fileprotected void loadAnimations(@NotNull ErrorView errorView)
errorView
- the error view for reporting problemsprotected void loadArchetypes(@NotNull ErrorView errorView, @NotNull java.util.List<G> invObjects)
errorView
- the error view for reporting problemsinvObjects
- all read archetypes are added to this list@NotNull protected FaceProvider loadFacesCollection(@NotNull ErrorView errorView)
errorView
- the error view for reporting problems