Interface ArchetypeParser<G extends GameObject<G,​A,​R>,​A extends MapArchObject<A>,​R extends Archetype<G,​A,​R>>

    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String START_ARCH_NAME
      Name of the system-archetype containing path of starting map.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void parseArchetypeFromStream​(@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 a BufferedReader, 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.IOException
        Here we read an Archetype from a BufferedReader, parse the data and put the result in the ArchetypeSet in CMainControl.
        Parameters:
        in - BufferedReader file stream of archetype data
        prototype - 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 to
        folderName - the folder name to add the archetype to
        archPath - the archetype path
        invObjects - collects all inventory objects
        errorViewCollector - the error view collector to use
        Throws:
        java.io.IOException - in case of I/O problems
        java.io.EOFException - in case an incomplete object was found