public class GameObjectSpell<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>> extends Spell
Constructor and Description |
---|
GameObjectSpell(R archetype,
GameObjectFactory<G,A,R> gameObjectFactory)
Create a new instance.
|
Modifier and Type | Method and Description |
---|---|
G |
createGameObject()
Return a copy of the game object.
|
java.lang.String |
getArchetypeName()
Return the archetype name of the spell object.
|
public GameObjectSpell(@NotNull R archetype, @NotNull GameObjectFactory<G,A,R> gameObjectFactory)
archetype
- the spell template archetypegameObjectFactory
- the game object factory for creating game
objects@NotNull public G createGameObject()
public java.lang.String getArchetypeName()