Package net.sf.gridarta.model.scripts
Interface ScriptArchUtils
-
- All Known Implementing Classes:
AbstractScriptArchUtils,DefaultScriptArchUtils,DefaultScriptArchUtils,DefaultScriptArchUtils
public interface ScriptArchUtils
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddEventsToJList(@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.StringgetArchetypeNameForEventType(int eventType)Returns the archetype for an event type.@NotNull java.lang.String @NotNull []getEventNames()Returns all event names.intindexToEventType(int index)Converts a combo box index to an event type.@NotNull java.lang.StringtypeName(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
-
getArchetypeNameForEventType
@NotNull @NotNull java.lang.String getArchetypeNameForEventType(int eventType) throws UndefinedEventArchetypeTypeExceptionReturns the archetype for an event type.- Parameters:
eventType- the event type- Returns:
- the archetype name
- Throws:
UndefinedEventArchetypeTypeException- if the event type is undefined
-
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- theJListgameObject- the game object to operate on
-
-