Package net.sf.gridarta.model.io
Interface ArchetypeParser<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>>
-
- All Known Implementing Classes:
AbstractArchetypeParser,ArchetypeParser,ArchetypeParser,ArchetypeParser
public interface ArchetypeParser<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>>Common interface for ArchetypeParsers.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringSTART_ARCH_NAMEName of the system-archetype containing path of starting map.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidparseArchetypeFromStream(@NotNull java.io.BufferedReader in, R prototype, @Nullable java.lang.String line, @Nullable java.lang.String archName, @NotNull java.lang.String panelName, @NotNull java.lang.String folderName, @NotNull java.lang.String archPath, @NotNull java.util.List<G> invObjects, @NotNull ErrorViewCollector errorViewCollector)Here we read an Archetype from aBufferedReader, parse the data and put the result in the ArchetypeSet in CMainControl.
-
-
-
Field Detail
-
START_ARCH_NAME
static final java.lang.String START_ARCH_NAME
Name of the system-archetype containing path of starting map.- See Also:
- Constant Field Values
-
-
Method Detail
-
parseArchetypeFromStream
void parseArchetypeFromStream(@NotNull @NotNull java.io.BufferedReader in, @Nullable R prototype, @Nullable @Nullable java.lang.String line, @Nullable @Nullable java.lang.String archName, @NotNull @NotNull java.lang.String panelName, @NotNull @NotNull java.lang.String folderName, @NotNull @NotNull java.lang.String archPath, @NotNull @NotNull java.util.List<G> invObjects, @NotNull @NotNull ErrorViewCollector errorViewCollector) throws java.io.IOExceptionHere we read an Archetype from aBufferedReader, parse the data and put the result in the ArchetypeSet in CMainControl.- Parameters:
in-BufferedReaderfile stream of archetype dataprototype- Prototype Archetype (only for artifacts)line- first line, pre-parsed (only for artifacts)archName- archetype-object name (only for artifacts)panelName- the panel name to add the archetype tofolderName- the folder name to add the archetype toarchPath- the archetype pathinvObjects- collects all inventory objectserrorViewCollector- the error view collector to use- Throws:
java.io.IOException- in case of I/O problemsjava.io.EOFException- in case an incomplete object was found
-
-