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(@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)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
loadAnimations(@NotNull ErrorView errorView)
Loads all animations.
|
protected void |
loadArchetypes(@NotNull ErrorView errorView,
@NotNull java.util.List<G> invObjects)
Loads all archetypes.
|
protected @NotNull FaceProvider |
loadFacesCollection(@NotNull ErrorView errorView)
Loads all faces.
|
addPNGFace, loadAnimationsFromCollect, loadAnimTree, readprotected 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)
collectedDirectory - the collected directoryimageSet - the active image set or nullarchetypeSet - 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
@NotNull ErrorView errorView)
errorView - the error view for reporting problemsprotected void loadArchetypes(@NotNull
@NotNull ErrorView errorView,
@NotNull
@NotNull java.util.List<G> invObjects)
errorView - the error view for reporting problemsinvObjects - all read archetypes are added to this list@NotNull protected @NotNull FaceProvider loadFacesCollection(@NotNull @NotNull ErrorView errorView)
errorView - the error view for reporting problems