 |
Gridarta Editor
|
Go to the documentation of this file.
20 package net.sf.gridarta.var.daimonin.resource;
23 import java.io.IOException;
24 import java.util.ArrayList;
25 import java.util.Collection;
26 import java.util.List;
47 import net.
sf.japi.swing.misc.Progress;
48 import org.jetbrains.annotations.NotNull;
111 public DefaultResources(@NotNull
final GameObjectParser<GameObject, MapArchObject, Archetype> gameObjectParser, @NotNull
final ArchetypeSet<GameObject, MapArchObject, Archetype> archetypeSet, @NotNull
final AbstractArchetypeParser<GameObject, MapArchObject, Archetype, ?> archetypeParser, @NotNull
final FaceObjects faceObjects, @NotNull
final AnimationObjects animationObjects, @NotNull
final ArchFaceProvider archFaceProvider, @NotNull
final FaceObjectProviders faceObjectProviders, @NotNull
final DaimoninAnimationObjectsReader animationObjectsReader) {
125 invObjects.addAll(
loadArtifacts(errorView, projectSettings.getCollectedDirectory(), projectSettings.getMapsDirectory()));
131 final List<GameObject> invObjects =
new ArrayList<>();
133 invObjects.addAll(
loadArtifacts(errorView, projectSettings.getCollectedDirectory(), projectSettings.getMapsDirectory()));
138 protected void writeCollectedInt(@NotNull
final Progress progress, @NotNull
final File collectedDirectory)
throws IOException {
143 collectedResourcesWriter.
write(progress, collectedDirectory);
154 private Collection<GameObject>
loadArtifacts(@NotNull
final ErrorView errorView, @NotNull
final File collectedDirectory, @NotNull
final File mapsDirectory) {
final DaimoninAnimationObjectsReader animationObjectsReader
The animation objects reader to use.
Implements the collection process that combines individual files into collected files which are read ...
Loads all resources from individual files.
Collection< G > getInvObjects()
Returns all collected inventory objects.
void writeCollectedInt(@NotNull final Progress progress, @NotNull final File collectedDirectory)
Writes the resources in collected form.
A Collectable that creates the atrinik.0/crossfire.0/daimonin.0 files which contains all defined face...
Handles the Daimonin variants of GameObjects and Archetypes.
Base package of all Gridarta classes.
List< GameObject > readCollectedInt(@NotNull final ProjectSettings projectSettings, @NotNull final ErrorView errorView)
Reads the resources from a collection.
Abstract base implementation of ArchetypeParser.
AnimationObjects is a container for AnimationObjects.
Implementation of FaceProvider which reads images from the arch directory.
Reads Daimonin AnimationObjects from files.
A net.sf.gridarta.model.collectable.Collectable that creates the Daimonin specific "archetypes" file.
void addCollectable(@NotNull final Collectable collectable)
Adds a Collectable resource.
Implements Daimonin archetypes.
Interface for classes displaying error messages.
Parser for artifact definitions.
Provider for faces of GameObjects and Archetypes.
Collection< GameObject > loadArtifacts(@NotNull final ErrorView errorView, @NotNull final File collectedDirectory, @NotNull final File mapsDirectory)
Loads all artifact definitions.
void setNormal(@NotNull final FaceProvider normalFaceProvider)
Sets the normal FaceProvider.
final AbstractArchetypeParser< GameObject, MapArchObject, Archetype, ?> archetypeParser
The AbstractArchetypeParser to use.
Defines common UI constants used in different dialogs and all used icon files.
Reading and writing of Daimonin maps.
Loads all resources from collected files.
final FaceObjectProviders faceObjectProviders
The FaceObjectProviders for looking up faces.
final GameObjectParser< G, A, R > gameObjectParser
The GameObjectParser to use.
FaceObjects is a container for FaceObjects.
Writes resources into a collection.
Interface that captures similarities between different ArchetypeSet implementations.
DefaultResources(@NotNull final GameObjectParser< GameObject, MapArchObject, Archetype > gameObjectParser, @NotNull final ArchetypeSet< GameObject, MapArchObject, Archetype > archetypeSet, @NotNull final AbstractArchetypeParser< GameObject, MapArchObject, Archetype, ?> archetypeParser, @NotNull final FaceObjects faceObjects, @NotNull final AnimationObjects animationObjects, @NotNull final ArchFaceProvider archFaceProvider, @NotNull final FaceObjectProviders faceObjectProviders, @NotNull final DaimoninAnimationObjectsReader animationObjectsReader)
Creates a new instance.
FaceProvider read(@NotNull final ErrorView errorView, @NotNull final List< GameObject > invObjects)
Handles the Daimonin GameObjects.
final ArchetypeSet< GameObject, MapArchObject, Archetype > archetypeSet
The ArchetypeSet to update.
Reading and writing of maps, handling of paths.
Settings that apply to a project.
void write(@NotNull final Progress progress, @NotNull final File collectedDirectory)
Writes the resources into a collection.
final ArchFaceProvider archFaceProvider
The ArchFaceProvider to use.
void readFilesInt(@NotNull final ProjectSettings projectSettings, @NotNull final ErrorView errorView, @NotNull final List< GameObject > invObjects)
FaceProvider read(@NotNull final ErrorView errorView, @NotNull final List< GameObject > invObjects)
Main package of Gridarta4Daimonin, contains all classes specific to the Daimonin version of the Grida...
The face is the appearance of an object.
String ANIMTREE_FILE
File to store the animation tree information after arch collection.
Gridarta can handle frame information of animations and allow the selection of an animation using a t...
MapArchObject contains the specific meta data about a map that is stored in the map-arch,...
A resource loader for Crossfire resources.
a Collectable that creates the "animations" file.
Interface for classes that read or write GameObject instances.
void loadArchesFromArtifacts(@NotNull final File f, @NotNull final String panelName, @NotNull final String folderName)
This method takes a filename or directory name as argument.
final FaceObjects faceObjects
The FaceObjects instance.
final AnimationObjects animationObjects
The AnimationObjects instance.