Package net.sf.gridarta.model.spells
Class GameObjectSpell<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>>
- java.lang.Object
-
- net.sf.gridarta.model.spells.Spell
-
- net.sf.gridarta.model.spells.GameObjectSpell<G,A,R>
-
public class GameObjectSpell<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>> extends Spell
Describes a numbered in-game spell.
-
-
Constructor Summary
Constructors Constructor Description GameObjectSpell(R archetype, @NotNull GameObjectFactory<G,A,R> gameObjectFactory)Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GcreateGameObject()Returns a copy of the game object.java.lang.StringgetArchetypeName()Returns the archetype name of the spell object.
-
-
-
Constructor Detail
-
GameObjectSpell
public GameObjectSpell(@NotNull R archetype, @NotNull @NotNull GameObjectFactory<G,A,R> gameObjectFactory)Creates a new instance.- Parameters:
archetype- the spell template archetypegameObjectFactory- the game object factory for creating game objects
-
-
Method Detail
-
createGameObject
@NotNull public G createGameObject()
Returns a copy of the game object.- Returns:
- the copy of the game object
-
getArchetypeName
public java.lang.String getArchetypeName()
Returns the archetype name of the spell object.- Returns:
- the archetype name
-
-