 |
Gridarta Editor
|
Go to the documentation of this file.
20 package net.sf.gridarta.model.spells;
27 import org.jetbrains.annotations.NotNull;
83 final String archObjName =
archetype.getObjName();
84 final String archetypeName =
archetype.getArchetype().getArchetypeName();
85 return (archObjName.isEmpty() ? archetypeName : archObjName) +
" [" + archetypeName +
"]";
final GameObjectFactory< G, A, R > gameObjectFactory
The GameObjectFactory for creating GameObjects.
Abstract factory for creating GameObject instances.
String getArchetypeName()
Returns the archetype name of the spell object.
Base package of all Gridarta classes.
String getName()
Returns the spell name.
Describes a numbered in-game spell.
Reflects a game object (object on a map).
G createGameObject()
Returns a copy of the game object.
GameObjects are the objects based on Archetypes found on maps.
static String getName(final BaseObject<?, ?, ?, ?> archetype)
Returns the name to use for a given archetype.
Interface for MapArchObjects.
G createGameObject(@NotNull R archetype)
Creates a new GameObject from an Archetype.
Describes an in-game spell.
GameObjectSpell(@NotNull final R archetype, @NotNull final GameObjectFactory< G, A, R > gameObjectFactory)
Creates a new instance.
final R archetype
The game object.