Gridarta Editor
net.sf.gridarta.model.scripts.ScriptArchUtils Interface Reference
+ Inheritance diagram for net.sf.gridarta.model.scripts.ScriptArchUtils:
+ Collaboration diagram for net.sf.gridarta.model.scripts.ScriptArchUtils:

Public Member Functions

void addEventsToJList (@NotNull JList< String > list, @NotNull 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. More...
 
String getArchetypeNameForEventType (int eventType) throws UndefinedEventArchetypeTypeException
 Returns the archetype for an event type. More...
 
String [] getEventNames ()
 Returns all event names. More...
 
int indexToEventType (int index)
 Converts a combo box index to an event type. More...
 
String typeName (int eventType)
 Returns a human readable name for an event type. More...
 

Detailed Description

Definition at line 26 of file ScriptArchUtils.java.

Member Function Documentation

◆ addEventsToJList()

void net.sf.gridarta.model.scripts.ScriptArchUtils.addEventsToJList ( @NotNull JList< String >  list,
@NotNull Iterable<? extends GameObject<?, ?, ?>>  gameObject 
)

◆ getArchetypeNameForEventType()

String net.sf.gridarta.model.scripts.ScriptArchUtils.getArchetypeNameForEventType ( int  eventType) throws UndefinedEventArchetypeTypeException

Returns the archetype for an event type.

Parameters
eventTypethe event type
Returns
the archetype name
Exceptions
UndefinedEventArchetypeTypeExceptionif the event type is undefined

Implemented in net.sf.gridarta.var.crossfire.gui.scripts.DefaultScriptArchUtils, net.sf.gridarta.var.atrinik.gui.scripts.DefaultScriptArchUtils, and net.sf.gridarta.var.daimonin.gui.scripts.DefaultScriptArchUtils.

Referenced by net.sf.gridarta.model.scripts.AbstractScriptedEventFactory< GameObject, MapArchObject, Archetype >.newEventGameObject().

+ Here is the caller graph for this function:

◆ getEventNames()

String [] net.sf.gridarta.model.scripts.ScriptArchUtils.getEventNames ( )

Returns all event names.

Returns
all event names; the array may be modified

Implemented in net.sf.gridarta.gui.scripts.AbstractScriptArchUtils.

◆ indexToEventType()

int net.sf.gridarta.model.scripts.ScriptArchUtils.indexToEventType ( int  index)

Converts a combo box index to an event type.

Parameters
indexthe combo box index
Returns
the event type

Implemented in net.sf.gridarta.gui.scripts.AbstractScriptArchUtils.

Referenced by net.sf.gridarta.gui.scripts.ScriptArchEditor< G, A, R >.createNewEvent().

+ Here is the caller graph for this function:

◆ typeName()

String net.sf.gridarta.model.scripts.ScriptArchUtils.typeName ( int  eventType)

Returns a human readable name for an event type.

Parameters
eventTypethe event type
Returns
the event type name

Implemented in net.sf.gridarta.gui.scripts.AbstractScriptArchUtils.

Referenced by net.sf.gridarta.gui.scripts.ScriptArchEditor< G, A, R >.createNewEvent(), and net.sf.gridarta.gui.scripts.ScriptArchDataUtils< G, A, R >.modifyEventScript().

+ Here is the caller graph for this function:

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