public abstract class AbstractArchetypeSetCollectable<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>> extends java.lang.Object implements Collectable
Collectables
that create the
"archetypes" file.Modifier | Constructor and Description |
---|---|
protected |
AbstractArchetypeSetCollectable(@NotNull ArchetypeSet<G,A,R> archetypeSet,
@NotNull java.lang.String archFile)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
void |
collect(@NotNull net.sf.japi.swing.misc.Progress progress,
@NotNull java.io.File collectedDirectory)
Collects information.
|
protected abstract int |
collectArchetype(R archetype,
@NotNull java.io.Writer out)
Collects an
Archetype : writes its definition into a writer. |
protected AbstractArchetypeSetCollectable(@NotNull @NotNull ArchetypeSet<G,A,R> archetypeSet, @NotNull @NotNull java.lang.String archFile)
archetypeSet
- the archetype set to collectarchFile
- the collected archetypes file namepublic void collect(@NotNull @NotNull net.sf.japi.swing.misc.Progress progress, @NotNull @NotNull java.io.File collectedDirectory) throws java.io.IOException
Collectable
collect
in interface Collectable
progress
- the progress to report progress tocollectedDirectory
- the destination directory to collect data tojava.io.IOException
- in case of I/O problems during collectionprotected abstract int collectArchetype(@NotNull R archetype, @NotNull @NotNull java.io.Writer out) throws java.io.IOException
Archetype
: writes its definition into a writer.archetype
- the archetypeout
- the writerjava.io.IOException
- if an I/O error occurs