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


  • public class GridartaEditor<G extends GameObject<G,​A,​R>,​A extends MapArchObject<A>,​R extends Archetype<G,​A,​R>>
    extends java.lang.Object
    Main class of the editor; parses command-line arguments, initializes and starts the editor.
    • Constructor Summary

      Constructors 
      Constructor Description
      GridartaEditor​(@NotNull java.lang.String tipOfTheDayPackage)
      Creates a new instance.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void run​(@NotNull java.lang.String actionBuilderPackage, @NotNull java.lang.String editorJarName, @NotNull EditorFactory<G,​A,​R> editorFactory, @Nullable java.lang.String defaultConfig, @NotNull java.lang.String... args)
      Runs the editor.
      • Methods inherited from class java.lang.Object

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

      • GridartaEditor

        public GridartaEditor​(@NotNull
                              @NotNull java.lang.String tipOfTheDayPackage)
        Creates a new instance.
        Parameters:
        tipOfTheDayPackage - the package name for tip of the day messages
    • Method Detail

      • run

        public void run​(@NotNull
                        @NotNull java.lang.String actionBuilderPackage,
                        @NotNull
                        @NotNull java.lang.String editorJarName,
                        @NotNull
                        @NotNull EditorFactory<G,​A,​R> editorFactory,
                        @Nullable
                        @Nullable java.lang.String defaultConfig,
                        @NotNull
                        @NotNull java.lang.String... args)
        Runs the editor.
        Parameters:
        actionBuilderPackage - the package name for creating an action builder
        editorJarName - the name of the .jar file containing the executable
        editorFactory - the editor factory to use
        defaultConfig - the default config file or null to use Java's preferences
        args - the command line parameters given to the level editor