public abstract class AbstractScriptedEventFactory<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>> extends java.lang.Object implements ScriptedEventFactory<G,A,R>
ScriptedEventFactory
implementations.Modifier | Constructor and Description |
---|---|
protected |
AbstractScriptedEventFactory(@NotNull ScriptArchUtils scriptArchUtils,
@NotNull GameObjectFactory<G,A,R> gameObjectFactory,
@NotNull ArchetypeSet<G,A,R> archetypeSet)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
G |
newEventGameObject(int eventType)
Return a new event game object for a given event type.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
newScriptedEvent, newScriptedEvent
protected AbstractScriptedEventFactory(@NotNull @NotNull ScriptArchUtils scriptArchUtils, @NotNull @NotNull GameObjectFactory<G,A,R> gameObjectFactory, @NotNull @NotNull ArchetypeSet<G,A,R> archetypeSet)
scriptArchUtils
- the script arch utils instance to usegameObjectFactory
- the game object factory for creating game
objectsarchetypeSet
- the archetype set to use@NotNull public G newEventGameObject(int eventType) throws UndefinedEventArchetypeException
ScriptedEventFactory
newEventGameObject
in interface ScriptedEventFactory<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>>
eventType
- the event typeUndefinedEventArchetypeException
- if the event game object cannot
be created