Class ScriptArchDataUtils<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 modifyEventScript​(int eventIndex, ScriptTask task, @NotNull javax.swing.JList<java.lang.String> panelList, @NotNull MapManager<?,​?,​?> mapManager, @NotNull java.awt.Frame parent, @NotNull java.lang.Iterable<G> gameObject)
      If there is a scripted event of the specified type, the script pad is opened and the appropriate script displayed.
      • Methods inherited from class java.lang.Object

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

      • ScriptArchDataUtils

        public ScriptArchDataUtils​(int eventTypeNo,
                                   @NotNull
                                   @NotNull ScriptArchUtils scriptArchUtils,
                                   @NotNull
                                   @NotNull ScriptedEventFactory<G,​A,​R> scriptedEventFactory,
                                   @NotNull
                                   @NotNull ScriptedEventEditor<G,​A,​R> scriptedEventEditor)
        Creates a new instance.
        Parameters:
        eventTypeNo - the object type for event objects
        scriptArchUtils - the script arch utils instance to use
        scriptedEventFactory - the scripted event factory instance to use
        scriptedEventEditor - the scripted event editor to use
    • Method Detail

      • modifyEventScript

        public void modifyEventScript​(int eventIndex,
                                      ScriptTask task,
                                      @NotNull
                                      @NotNull javax.swing.JList<java.lang.String> panelList,
                                      @NotNull
                                      @NotNull MapManager<?,​?,​?> mapManager,
                                      @NotNull
                                      @NotNull java.awt.Frame parent,
                                      @NotNull
                                      @NotNull java.lang.Iterable<G> gameObject)
        If there is a scripted event of the specified type, the script pad is opened and the appropriate script displayed.
        Parameters:
        eventIndex - index of event in the owner's inventory
        task - the task to execute
        panelList - the JList from the MapArchPanel (script tab) which displays the events
        mapManager - the map manager instance
        parent - the parent frame for dialog boxes
        gameObject - the game object to operate on