public class DefaultScriptArchData<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>> extends java.lang.Object implements ScriptArchData<G,A,R>
| Constructor and Description |
|---|
DefaultScriptArchData(@NotNull java.lang.String subtypeAttribute,
int eventTypeNo)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
G |
getScriptedEvent(int eventSubtype,
G gameObject)
Search the owner game object for an event object of the specified event
type.
|
boolean |
isEmpty(G gameObject)
Returns whether this ScriptArchData is empty (contains no events).
|
public DefaultScriptArchData(@NotNull
@NotNull java.lang.String subtypeAttribute,
int eventTypeNo)
subtypeAttribute - the attribute name for the subtype fieldeventTypeNo - the object type for event objects@Nullable public G getScriptedEvent(int eventSubtype, @NotNull G gameObject)
ScriptArchDatagetScriptedEvent in interface ScriptArchData<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>>eventSubtype - look for a ScriptedEvent of this typegameObject - the game object to operate onnull if no event of this type
existspublic boolean isEmpty(@NotNull
G gameObject)
ScriptArchDataisEmpty in interface ScriptArchData<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>>gameObject - the game object to operate ontrue if this ScriptArchData contains no events, otherwise
false