Interface ScriptArchUtils

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void addEventsToJList​(@NotNull javax.swing.JList<java.lang.String> list, @NotNull java.lang.Iterable<? extends GameObject<?,​?,​?>> gameObject)
      Set all ScriptedEvents to appear in the given JList This method should be fast because it may be executed when user clicks on map objects.
      @NotNull java.lang.String getArchetypeNameForEventType​(int eventType)
      Returns the archetype for an event type.
      @NotNull java.lang.String @NotNull [] getEventNames()
      Returns all event names.
      int indexToEventType​(int index)
      Converts a combo box index to an event type.
      @NotNull java.lang.String typeName​(int eventType)
      Returns a human readable name for an event type.
    • Method Detail

      • typeName

        @NotNull
        @NotNull java.lang.String typeName​(int eventType)
        Returns a human readable name for an event type.
        Parameters:
        eventType - the event type
        Returns:
        the event type name
      • indexToEventType

        int indexToEventType​(int index)
        Converts a combo box index to an event type.
        Parameters:
        index - the combo box index
        Returns:
        the event type
      • getEventNames

        @NotNull
        @NotNull java.lang.String @NotNull [] getEventNames()
        Returns all event names.
        Returns:
        all event names; the array may be modified
      • addEventsToJList

        void addEventsToJList​(@NotNull
                              @NotNull javax.swing.JList<java.lang.String> list,
                              @NotNull
                              @NotNull java.lang.Iterable<? extends GameObject<?,​?,​?>> gameObject)
        Set all ScriptedEvents to appear in the given JList This method should be fast because it may be executed when user clicks on map objects.
        Parameters:
        list - the JList
        gameObject - the game object to operate on