Class DefaultMapWriter<G extends GameObject<G,​A,​R>,​A extends MapArchObject<A>,​R extends Archetype<G,​A,​R>>

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void encodeMapFile​(@NotNull MapModel<G,​A,​R> mapModel, @NotNull java.io.Writer writer)
      Write the whole map-data into a file.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DefaultMapWriter

        public DefaultMapWriter​(@NotNull
                                @NotNull MapArchObjectParserFactory<A> mapArchObjectParserFactory,
                                @NotNull
                                @NotNull GameObjectParser<G,​A,​R> gameObjectParser)
        Creates a new instance.
        Parameters:
        mapArchObjectParserFactory - the map arch object parser factory to use
        gameObjectParser - the game object parser to use
    • Method Detail

      • encodeMapFile

        public void encodeMapFile​(@NotNull
                                  @NotNull MapModel<G,​A,​R> mapModel,
                                  @NotNull
                                  @NotNull java.io.Writer writer)
                           throws java.io.IOException
        Description copied from interface: MapWriter
        Write the whole map-data into a file.
        Specified by:
        encodeMapFile in interface MapWriter<G extends GameObject<G,​A,​R>,​A extends MapArchObject<A>,​R extends Archetype<G,​A,​R>>
        Parameters:
        mapModel - the MapModel to encode
        writer - the writer to write to
        Throws:
        java.io.IOException - In case of I/O problems when writing the map file.