 |
Gridarta Editor
|
Go to the documentation of this file.
20 package net.sf.gridarta.model.artifact;
22 import java.io.BufferedReader;
24 import java.io.IOException;
25 import java.io.Reader;
26 import java.io.StringReader;
49 import org.jetbrains.annotations.NotNull;
100 final File file =
new File(
"*string*");
120 final StringBuilder objectText =
new StringBuilder();
121 for (
final String attribute : attributes) {
122 objectText.append(attribute);
123 objectText.append(
'\n');
125 baseArchetype.setObjectText(objectText.toString());
135 final Reader reader =
new StringReader(artifacts);
136 try (BufferedReader bufferedReader =
new BufferedReader(reader)) {
An Archetype implementation for testing purposes.
An Archetype implementation for testing purposes.
Base package of all Gridarta classes.
Exception thrown if an Archetype does not exist.
Abstract base implementation of ArchetypeParser.
AnimationObjects is a container for AnimationObjects.
final ArtifactParser< TestGameObject, TestMapArchObject, TestArchetype > artifactParser
The ArtifactParser instance.
A GameObject implementation for testing purposes.
Parser for artifact definitions.
Provider for faces of GameObjects and Archetypes.
An AnimationObjects for regression tests.
Archetype< TestGameObject, TestMapArchObject, TestArchetype > getArchetype(@NotNull final String archetypeName)
Returns an Archetype by name.
final AnimationObjects animationObjects
The AnimationObjects instance.
final FaceObjectProviders faceObjectProviders
The FaceObjectProviders instance.
GameObjects are the objects based on Archetypes found on maps.
Convenience class for adding messages to a ErrorView instance using a fixed category name.
A GameObjectFactory for regression tests.
Parser for artifacts definitions.
void parseArtifacts(@NotNull final String artifacts)
Parses artifacts definitions.
FaceObjects is a container for FaceObjects.
An ErrorView suitable for unit tests.
Interface that captures similarities between different ArchetypeSet implementations.
An AbstractArchetypeBuilder for regression tests.
TestParser(@NotNull final TestErrorView errorView)
Creates a new instance.
An ArchetypeFactory implementation for testing purposes.
Reading and writing of maps, handling of paths.
final ArchetypeSet< TestGameObject, TestMapArchObject, TestArchetype > archetypeSet
The ArchetypeSet instance.
int getArchetypeCount()
Returns the number of defined archetypes.
An ArchetypeParser for regression tests.
The face is the appearance of an object.
Gridarta can handle frame information of animations and allow the selection of an animation using a t...
TestParser()
Creates a new instance.
An Exception indicating that an Archetype name is not unique.
A MapArchObject implementation for testing purposes.
Creates ImageIcon instances from resources.
void addArchetype(@NotNull final String archetypeName, @NotNull final String... attributes)
Adds a new archetype.
Base implementation of ArchetypeSet.
final ErrorViewCollector errorViewCollector
The ErrorViewCollector instance.
A FaceObjects for regression tests.