public interface ScriptArchUtils
Modifier and Type | Method and 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[] |
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.
|
@NotNull @NotNull java.lang.String typeName(int eventType)
eventType
- the event type@NotNull @NotNull java.lang.String getArchetypeNameForEventType(int eventType) throws UndefinedEventArchetypeTypeException
eventType
- the event typeUndefinedEventArchetypeTypeException
- if the event type is
undefinedint indexToEventType(int index)
index
- the combo box index@NotNull @NotNull java.lang.String[] getEventNames()
void addEventsToJList(@NotNull @NotNull javax.swing.JList<java.lang.String> list, @NotNull @NotNull java.lang.Iterable<? extends GameObject<?,?,?>> gameObject)
list
- the JList
gameObject
- the game object to operate on