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