Gridarta Editor
net.sf.gridarta.gui.scripts.ScriptArchDataUtils< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R > Class Template Reference

net.sf.gridarta.model.scripts.ScriptArchData related functions. More...

+ Inheritance diagram for net.sf.gridarta.gui.scripts.ScriptArchDataUtils< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >:
+ Collaboration diagram for net.sf.gridarta.gui.scripts.ScriptArchDataUtils< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >:

Public Member Functions

void modifyEventScript (final int eventIndex, final ScriptTask task, @NotNull final JList< String > panelList, @NotNull final MapManager<?, ?, ?> mapManager, @NotNull final Frame parent, @NotNull final Iterable< G > gameObject)
 If there is a scripted event of the specified type, the script pad is opened and the appropriate script displayed. More...
 
 ScriptArchDataUtils (final int eventTypeNo, @NotNull final ScriptArchUtils scriptArchUtils, @NotNull final ScriptedEventFactory< G, A, R > scriptedEventFactory, @NotNull final ScriptedEventEditor< G, A, R > scriptedEventEditor)
 Creates a new instance. More...
 

Private Attributes

final int eventTypeNo
 The object type for event objects. More...
 
final ScriptArchUtils scriptArchUtils
 The ScriptArchUtils instance to use. More...
 
final ScriptedEventEditor< G, A, R > scriptedEventEditor
 The ScriptedEventEditor to use. More...
 
final ScriptedEventFactory< G, A, R > scriptedEventFactory
 The ScriptedEventFactory instance to use. More...
 

Static Private Attributes

static final Category LOG = Logger.getLogger(ScriptArchDataUtils.class)
 The Logger for printing log messages. More...
 

Detailed Description

net.sf.gridarta.model.scripts.ScriptArchData related functions.

Author
Andreas Vogl
Andreas Kirschbaum

Definition at line 41 of file ScriptArchDataUtils.java.

Constructor & Destructor Documentation

◆ ScriptArchDataUtils()

net.sf.gridarta.gui.scripts.ScriptArchDataUtils< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.ScriptArchDataUtils ( final int  eventTypeNo,
@NotNull final ScriptArchUtils  scriptArchUtils,
@NotNull final ScriptedEventFactory< G, A, R >  scriptedEventFactory,
@NotNull final ScriptedEventEditor< G, A, R >  scriptedEventEditor 
)

Creates a new instance.

Parameters
eventTypeNothe object type for event objects
scriptArchUtilsthe script arch utils instance to use
scriptedEventFactorythe scripted event factory instance to use
scriptedEventEditorthe scripted event editor to use

Definition at line 80 of file ScriptArchDataUtils.java.

Member Function Documentation

◆ modifyEventScript()

void net.sf.gridarta.gui.scripts.ScriptArchDataUtils< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.modifyEventScript ( final int  eventIndex,
final ScriptTask  task,
@NotNull final JList< String >  panelList,
@NotNull final MapManager<?, ?, ?>  mapManager,
@NotNull final Frame  parent,
@NotNull final Iterable< G >  gameObject 
)

If there is a scripted event of the specified type, the script pad is opened and the appropriate script displayed.

Parameters
eventIndexindex of event in the owner's inventory
taskthe task to execute
panelListthe
JList
from the
MapArchPanel
(script tab) which displays the events
mapManagerthe map manager instance
parentthe parent frame for dialog boxes
gameObjectthe game object to operate on

Definition at line 98 of file ScriptArchDataUtils.java.

Referenced by net.sf.gridarta.gui.panel.gameobjectattributes.EventsTab< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.doEditEvent().

+ Here is the caller graph for this function:

Member Data Documentation

◆ eventTypeNo

final int net.sf.gridarta.gui.scripts.ScriptArchDataUtils< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.eventTypeNo
private

◆ LOG

final Category net.sf.gridarta.gui.scripts.ScriptArchDataUtils< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.LOG = Logger.getLogger(ScriptArchDataUtils.class)
staticprivate

The Logger for printing log messages.

Definition at line 47 of file ScriptArchDataUtils.java.

◆ scriptArchUtils

final ScriptArchUtils net.sf.gridarta.gui.scripts.ScriptArchDataUtils< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.scriptArchUtils
private

◆ scriptedEventEditor

final ScriptedEventEditor<G, A, R> net.sf.gridarta.gui.scripts.ScriptArchDataUtils< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.scriptedEventEditor
private

◆ scriptedEventFactory

final ScriptedEventFactory<G, A, R> net.sf.gridarta.gui.scripts.ScriptArchDataUtils< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.scriptedEventFactory
private

The documentation for this class was generated from the following file: