Class AbstractArchetypeSetCollectable<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>>
- java.lang.Object
-
- net.sf.gridarta.model.collectable.AbstractArchetypeSetCollectable<G,A,R>
-
- All Implemented Interfaces:
Collectable
- Direct Known Subclasses:
AtrinikArchetypeSetCollectable,CrossfireArchetypeSetCollectable,DaimoninArchetypeSetCollectable
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
Abstract base class forCollectablesthat create the "archetypes" file.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractArchetypeSetCollectable(@NotNull ArchetypeSet<G,A,R> archetypeSet, @NotNull java.lang.String archFile)Creates a new instance.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidcollect(@NotNull net.sf.japi.swing.misc.Progress progress, @NotNull java.io.File collectedDirectory)Collects information.protected abstract intcollectArchetype(R archetype, @NotNull java.io.Writer out)Collects anArchetype: writes its definition into a writer.
-
-
-
Constructor Detail
-
AbstractArchetypeSetCollectable
protected AbstractArchetypeSetCollectable(@NotNull @NotNull ArchetypeSet<G,A,R> archetypeSet, @NotNull @NotNull java.lang.String archFile)Creates a new instance.- Parameters:
archetypeSet- the archetype set to collectarchFile- the collected archetypes file name
-
-
Method Detail
-
collect
public void collect(@NotNull @NotNull net.sf.japi.swing.misc.Progress progress, @NotNull @NotNull java.io.File collectedDirectory) throws java.io.IOExceptionDescription copied from interface:CollectableCollects information.- Specified by:
collectin interfaceCollectable- Parameters:
progress- the progress to report progress tocollectedDirectory- the destination directory to collect data to- Throws:
java.io.IOException- in case of I/O problems during collection
-
collectArchetype
protected abstract int collectArchetype(@NotNull R archetype, @NotNull @NotNull java.io.Writer out) throws java.io.IOExceptionCollects anArchetype: writes its definition into a writer.- Parameters:
archetype- the archetypeout- the writer- Returns:
- the number of archetype parts written
- Throws:
java.io.IOException- if an I/O error occurs
-
-