Class DefaultResources
- java.lang.Object
-
- net.sf.gridarta.model.resource.AbstractResources<GameObject,MapArchObject,Archetype>
-
- net.sf.gridarta.var.daimonin.resource.DefaultResources
-
public class DefaultResources extends AbstractResources<GameObject,MapArchObject,Archetype>
A resource loader for Crossfire resources.
-
-
Constructor Summary
Constructors Constructor Description DefaultResources(@NotNull GameObjectParser<GameObject,MapArchObject,Archetype> gameObjectParser, @NotNull ArchetypeSet<GameObject,MapArchObject,Archetype> archetypeSet, @NotNull AbstractArchetypeParser<GameObject,MapArchObject,Archetype,?> archetypeParser, @NotNull FaceObjects faceObjects, @NotNull AnimationObjects animationObjects, @NotNull ArchFaceProvider archFaceProvider, @NotNull FaceObjectProviders faceObjectProviders, @NotNull DaimoninAnimationObjectsReader animationObjectsReader)Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected @NotNull java.util.List<GameObject>readCollectedInt(@NotNull ProjectSettings projectSettings, @NotNull ErrorView errorView)Reads the resources from a collection.protected voidreadFilesInt(@NotNull ProjectSettings projectSettings, @NotNull ErrorView errorView, @NotNull java.util.List<GameObject> invObjects)Reads the resources from individual files.protected voidwriteCollectedInt(@NotNull net.sf.japi.swing.misc.Progress progress, @NotNull java.io.File collectedDirectory)Writes the resources in collected form.-
Methods inherited from class net.sf.gridarta.model.resource.AbstractResources
canWriteCollected, readCollected, readFiles, writeCollected
-
-
-
-
Constructor Detail
-
DefaultResources
public DefaultResources(@NotNull @NotNull GameObjectParser<GameObject,MapArchObject,Archetype> gameObjectParser, @NotNull @NotNull ArchetypeSet<GameObject,MapArchObject,Archetype> archetypeSet, @NotNull @NotNull AbstractArchetypeParser<GameObject,MapArchObject,Archetype,?> archetypeParser, @NotNull @NotNull FaceObjects faceObjects, @NotNull @NotNull AnimationObjects animationObjects, @NotNull @NotNull ArchFaceProvider archFaceProvider, @NotNull @NotNull FaceObjectProviders faceObjectProviders, @NotNull @NotNull DaimoninAnimationObjectsReader animationObjectsReader)Creates a new instance.- Parameters:
gameObjectParser- the game object parser to usearchetypeSet- the archetype set to updatearchetypeParser- the archetype parser to usefaceObjects- the face objects instanceanimationObjects- the animation objects instancearchFaceProvider- the arch face provider to usefaceObjectProviders- the face object providers for looking up facesanimationObjectsReader- the animation objects reader instance to use
-
-
Method Detail
-
readFilesInt
protected void readFilesInt(@NotNull @NotNull ProjectSettings projectSettings, @NotNull @NotNull ErrorView errorView, @NotNull @NotNull java.util.List<GameObject> invObjects)Description copied from class:AbstractResourcesReads the resources from individual files.- Specified by:
readFilesIntin classAbstractResources<GameObject,MapArchObject,Archetype>- Parameters:
projectSettings- the project settings to read fromerrorView- the error view for reporting problemsinvObjects- all read archetypes
-
readCollectedInt
@NotNull protected @NotNull java.util.List<GameObject> readCollectedInt(@NotNull @NotNull ProjectSettings projectSettings, @NotNull @NotNull ErrorView errorView)
Description copied from class:AbstractResourcesReads the resources from a collection.- Specified by:
readCollectedIntin classAbstractResources<GameObject,MapArchObject,Archetype>- Parameters:
projectSettings- the project settings to read fromerrorView- the error view for reporting problems- Returns:
- all read archetypes
-
writeCollectedInt
protected void writeCollectedInt(@NotNull @NotNull net.sf.japi.swing.misc.Progress progress, @NotNull @NotNull java.io.File collectedDirectory) throws java.io.IOExceptionDescription copied from class:AbstractResourcesWrites the resources in collected form.- Specified by:
writeCollectedIntin classAbstractResources<GameObject,MapArchObject,Archetype>- Parameters:
progress- the progress to usecollectedDirectory- the collected directory to write to- Throws:
java.io.IOException- if collection fails
-
-