20 package net.sf.gridarta.var.daimonin.model.collectable;
22 import java.io.IOException;
23 import java.io.Writer;
30 import org.jetbrains.annotations.NotNull;
54 for (
Archetype tail = archetype.getMultiNext(); tail != null; tail = tail.getMultiNext()) {
72 appendable.append(
"Object ").append(archetype.getArchetypeName()).append(
'\n');
74 if (archetype.getMultiShapeID() > 0) {
75 appendable.append(
"mpart_id ").append(Integer.toString(archetype.getMultiShapeID())).append(
'\n');
77 if (archetype.getMultiPartNr() > 0) {
78 appendable.append(
"mpart_nr ").append(Integer.toString(archetype.getMultiPartNr())).append(
'\n');
81 if (archetype.getMsgText() != null) {
82 appendable.append(
"msg\n").append(archetype.getMsgText()).append(
"endmsg\n");
87 appendable.append(
"editor_folder ").append(archetype.getEditorFolder()).append(
'\n');
90 appendable.append(archetype.getObjectText());
94 if (archetype.getMultiX() != 0) {
95 appendable.append(
"x ").append(Integer.toString(archetype.getMultiX())).append(
'\n');
97 if (archetype.getMultiY() != 0) {
98 appendable.append(
"y ").append(Integer.toString(archetype.getMultiY())).append(
'\n');
102 appendable.append(
"end\n");
Main package of Gridarta4Daimonin, contains all classes specific to the Daimonin version of the Grida...
Defines common UI constants used in different dialogs and all used icon files.
Implements Daimonin archetypes.
int collectArchetype(@NotNull final Archetype archetype, @NotNull final Writer out)
Base package of all Gridarta classes.
DaimoninArchetypeSetCollectable(@NotNull final ArchetypeSet< GameObject, MapArchObject, Archetype > archetypeSet)
Creates a new instance.
Abstract base class for Collectables that create the "archetypes" file.
MapArchObject contains the specific meta data about a map that is stored in the map-arch, at the very beginning of the map file.
Handles the Daimonin variants of GameObjects and Archetypes.
Implements the collection process that combines individual files into collected files which are read ...
final ArchetypeSet< G, A, R > archetypeSet
The ArchetypeSet being collected.
Handles the Daimonin GameObjects.
A net.sf.gridarta.model.collectable.Collectable that creates the Daimonin specific "archetypes" file...
Interface that captures similarities between different ArchetypeSet implementations.
static void writeArchetype(@NotNull final Appendable appendable, @NotNull final net.sf.gridarta.model.archetype.Archetype< GameObject, MapArchObject, Archetype > archetype, final boolean isHeadPart)
Writes an Archetype.