20 package net.sf.gridarta.plugin.parameter;
27 import org.jetbrains.annotations.NotNull;
28 import org.jetbrains.annotations.Nullable;
33 public class ArchetypeParameter<G
extends GameObject<G, A, R>, A extends
MapArchObject<A>, R extends
Archetype<G, A, R>> extends
AbstractStringPluginParameter<G, A, R, Archetype<G, A, R>> {
59 return visitor.visit(
this);
69 throw new InvalidValueException(
"undefined archetype: " + archetypeName, ex);
ArchetypeParameter(@NotNull final ArchetypeSet< G, A, R > archetypeSet)
Creates a new instance.
Abstract base class for PluginParameter implementations for which the value is calculated from the st...
Base package of all Gridarta classes.
Reflects a game object (object on a map).
R getArchetype(@NotNull String archetypeName)
Returns an Archetype by its name.
final ArchetypeSet< G, A, R > archetypeSet
The ArchetypeSet for looking up archetypes.
GameObjects are the objects based on Archetypes found on maps.
A PluginParameter that holds an Archetype value.
Interface for visitors of PluginParameter instances.
String getParameterType()
Exception thrown if an Archetype does not exist.
Archetype< G, A, R > getValue()
An exception that is thrown if the string representation of value in a PluginParameter cannot be conv...
Interface that captures similarities between different ArchetypeSet implementations.
static final String PARAMETER_TYPE
The string representation of this parameter type.
Archetype< G, A, R > getValueOrNull()
Interface for MapArchObjects.