Package net.sf.gridarta.gui.scripts
Class ScriptArchDataUtils<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>>
- java.lang.Object
-
- net.sf.gridarta.gui.scripts.ScriptArchDataUtils<G,A,R>
-
public class ScriptArchDataUtils<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>> extends java.lang.ObjectScriptArchDatarelated functions.
-
-
Constructor Summary
Constructors Constructor Description ScriptArchDataUtils(int eventTypeNo, @NotNull ScriptArchUtils scriptArchUtils, @NotNull ScriptedEventFactory<G,A,R> scriptedEventFactory, @NotNull ScriptedEventEditor<G,A,R> scriptedEventEditor)Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidmodifyEventScript(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.
-
-
-
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 objectsscriptArchUtils- the script arch utils instance to usescriptedEventFactory- the scripted event factory instance to usescriptedEventEditor- 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 inventorytask- the task to executepanelList- theJListfrom theMapArchPanel(script tab) which displays the eventsmapManager- the map manager instanceparent- the parent frame for dialog boxesgameObject- the game object to operate on
-
-