Abstract base class for archetype set loader classes.
More...
|
| | AbstractResourcesReader (@NotNull final File collectedDirectory, @Nullable final String imageSet, @NotNull final AnimationObjects animationObjects, @NotNull final FaceObjects faceObjects) |
| | Creates a new instance. More...
|
| |
| void | addPNGFace (@NotNull final String filename, @NotNull final String path, @NotNull final String name, @NotNull final ErrorView errorView, @NotNull final ArchFaceProvider archFaceProvider) |
| | Loads a png from the file, convert it to IconImage and attach it to the face list. More...
|
| |
| void | loadAnimationsFromCollect (@NotNull final ErrorView errorView, @NotNull final Map< String, String > animations) |
| | Loads all animations from the big collected animations file. More...
|
| |
|
| static Map< String, String > | loadAnimTree (@NotNull final URL url) throws IOException |
| | Loads animations from a file. More...
|
| |
|
| static Map< String, String > | loadAnimTree (@NotNull final BufferedReader reader) throws IOException |
| | Reads Animation Tree from Stream. More...
|
| |
|
| static final ActionBuilder | ACTION_BUILDER = ActionBuilderFactory.getInstance().getActionBuilder("net.sf.gridarta") |
| | Action Builder. More...
|
| |
| static final Category | LOG = Logger.getLogger(AbstractResourcesReader.class) |
| | The logger for printing log messages. More...
|
| |
Abstract base class for archetype set loader classes.
- Author
- Michael Toennies
-
Andreas Vogl
-
Christian Hujer
-
Andreas Kirschbaum
Definition at line 60 of file AbstractResourcesReader.java.
◆ AbstractResourcesReader()
Creates a new instance.
- Parameters
-
| collectedDirectory | the collected directory |
| imageSet | the active image set or |
| animationObjects | the animation objects instance |
| faceObjects | the face objects instance |
Definition at line 106 of file AbstractResourcesReader.java.
◆ addPNGFace()
Loads a png from the file, convert it to IconImage and attach it to the face list.
- Parameters
-
| filename | the filename, an absolute path |
| path | the path name of |
| name | the name of the png (e.g. blocked.111.png) |
| errorView | the error view to use |
| archFaceProvider | the arch face provider to add to |
Definition at line 155 of file AbstractResourcesReader.java.
◆ generateFaceName()
◆ loadAnimationsFromCollect()
Loads all animations from the big collected animations file.
- Parameters
-
| errorView | the error view for reporting errors |
| animations | maps animation name to animation path |
Definition at line 118 of file AbstractResourcesReader.java.
◆ loadAnimTree() [1/2]
◆ loadAnimTree() [2/2]
Reads Animation Tree from Stream.
- Parameters
-
- Returns
- a map from animation name to animation path
- Exceptions
-
| IOException | in case of I/O errors |
Definition at line 241 of file AbstractResourcesReader.java.
◆ read()
◆ ACTION_BUILDER
◆ animationObjects
◆ collectedDirectory
◆ faceObjects
◆ imageSet
◆ LOG
The documentation for this class was generated from the following file: