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

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

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

Public Member Functions

 DefaultScriptArchData (@NotNull final String subtypeAttribute, final int eventTypeNo)
 Create a ScriptArchData. More...
 
getScriptedEvent (final int eventSubtype, @NotNull final G gameObject)
 
boolean isEmpty (@NotNull final G gameObject)
 
- Public Member Functions inherited from net.sf.gridarta.model.scripts.ScriptArchData< G, A, R >
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...
 

Private Attributes

final int eventTypeNo
 The object type for event objects. More...
 
final String subtypeAttribute
 The attribute name for the subtype field. 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 36 of file DefaultScriptArchData.java.

Constructor & Destructor Documentation

◆ DefaultScriptArchData()

net.sf.gridarta.model.scripts.DefaultScriptArchData< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.DefaultScriptArchData ( @NotNull final String  subtypeAttribute,
final int  eventTypeNo 
)

Member Function Documentation

◆ getScriptedEvent()

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

Definition at line 63 of file DefaultScriptArchData.java.

◆ isEmpty()

Member Data Documentation

◆ eventTypeNo

◆ subtypeAttribute

final String net.sf.gridarta.model.scripts.DefaultScriptArchData< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.subtypeAttribute
private

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