Package net.sf.gridarta.model.scripts
Interface ScriptArchData<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>>
-
- All Known Implementing Classes:
DefaultScriptArchData
public interface ScriptArchData<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>>Stores and manages information about scripted events. This data is only needed for those arches with one or more events defined.- XXX:
- This class is designed very badly, as it combines model and presentation.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description GgetScriptedEvent(int eventSubtype, G gameObject)Search the owner game object for an event object of the specified event type.booleanisEmpty(G gameObject)Returns whether this ScriptArchData is empty (contains no events).
-
-
-
Method Detail
-
getScriptedEvent
@Nullable G getScriptedEvent(int eventSubtype, @NotNull G gameObject)
Search the owner game object for an event object of the specified event type.- Parameters:
eventSubtype- look for a ScriptedEvent of this typegameObject- the game object to operate on- Returns:
- the event game object, or
nullif no event of this type exists
-
isEmpty
boolean isEmpty(@NotNull G gameObject)Returns whether this ScriptArchData is empty (contains no events). (Note that empty ScriptArchData objects always are removed ASAP.)- Parameters:
gameObject- the game object to operate on- Returns:
trueif this ScriptArchData contains no events, otherwisefalse
-
-