20 package net.sf.gridarta.model.scripts;
28 import org.jetbrains.annotations.NotNull;
72 final R eventArchetype;
74 eventArchetype = archetypeSet.
getArchetype(eventArchetypeName);
G createGameObject(@NotNull R archetype)
Creates a new GameObject from an Archetype.
Factory for creating ScriptedEvent instances.
Base package of all Gridarta classes.
Reflects a game object (object on a map).
Abstract factory for creating GameObject instances.
R getArchetype(@NotNull String archetypeName)
Returns an Archetype by its name.
GameObjects are the objects based on Archetypes found on maps.
This exception is thrown if an event game object cannot be created.
final GameObjectFactory< G, A, R > gameObjectFactory
The GameObjectFactory for creating GameObjects.
This class implements an UndefinedEventArchetypeException that describes a missing archetype...
final ArchetypeSet< G, A, R > archetypeSet
The ArchetypeSet to use.
Exception thrown if an Archetype does not exist.
AbstractScriptedEventFactory(@NotNull final ScriptArchUtils scriptArchUtils, @NotNull final GameObjectFactory< G, A, R > gameObjectFactory, @NotNull final ArchetypeSet< G, A, R > archetypeSet)
Creates a new instance.
Abstract base class forScriptedEventFactory implementations.
Interface that captures similarities between different ArchetypeSet implementations.
final ScriptArchUtils scriptArchUtils
The ScriptArchUtils instance to use.
G newEventGameObject(final int eventType)
String getArchetypeNameForEventType(int eventType)
Returns the archetype for an event type.
Interface for MapArchObjects.