public class ScriptArchDataUtils<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>>
extends java.lang.Object
ScriptArchData
related functions.Constructor and Description |
---|
ScriptArchDataUtils(int eventTypeNo,
@NotNull ScriptArchUtils scriptArchUtils,
@NotNull ScriptedEventFactory<G,A,R> scriptedEventFactory,
@NotNull ScriptedEventEditor<G,A,R> scriptedEventEditor)
Creates a new instance.
|
Modifier and Type | Method and 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.
|
public ScriptArchDataUtils(int eventTypeNo, @NotNull @NotNull ScriptArchUtils scriptArchUtils, @NotNull @NotNull ScriptedEventFactory<G,A,R> scriptedEventFactory, @NotNull @NotNull ScriptedEventEditor<G,A,R> scriptedEventEditor)
eventTypeNo
- the object type for event objectsscriptArchUtils
- the script arch utils instance to usescriptedEventFactory
- the scripted event factory instance to usescriptedEventEditor
- the scripted event editor to usepublic 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)
eventIndex
- index of event in the owner's inventorytask
- the task to executepanelList
- the JList
from the MapArchPanel
(script
tab) which displays the eventsmapManager
- the map manager instanceparent
- the parent frame for dialog boxesgameObject
- the game object to operate on