Gridarta Editor
net.sf.gridarta.model.scripts.ScriptArchData< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R > Interface Template Reference

Stores and manages information about scripted events. More...

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

Public Member Functions

getScriptedEvent (int eventSubtype, @NotNull G gameObject)
 Search the owner game object for an event object of the specified event type. More...
 
boolean isEmpty (@NotNull G gameObject)
 Returns whether this ScriptArchData is empty (contains no events). More...
 

Detailed Description

Stores and manages information about scripted events.

This data is only needed for those arches with one or more events defined.

Author
Andreas Vogl This class is designed very badly, as it combines model and presentation.

Definition at line 35 of file ScriptArchData.java.

Member Function Documentation

◆ getScriptedEvent()

G net.sf.gridarta.model.scripts.ScriptArchData< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.getScriptedEvent ( int  eventSubtype,
@NotNull G  gameObject 
)

Search the owner game object for an event object of the specified event type.

Parameters
eventSubtypelook for a ScriptedEvent of this type
gameObjectthe game object to operate on
Returns
the event game object, or
null
if no event of this type exists

◆ isEmpty()

boolean net.sf.gridarta.model.scripts.ScriptArchData< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.isEmpty ( @NotNull G  gameObject)

Returns whether this ScriptArchData is empty (contains no events).

(Note that empty ScriptArchData objects always are removed ASAP.)

Parameters
gameObjectthe game object to operate on
Returns
true
if this ScriptArchData contains no events, otherwise
false

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 >.doAddNewEvent(), and 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:

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