Class GameObjectSpell<G extends GameObject<G,​A,​R>,​A extends MapArchObject<A>,​R extends Archetype<G,​A,​R>>

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      G createGameObject()
      Returns a copy of the game object.
      java.lang.String getArchetypeName()
      Returns the archetype name of the spell object.
      • Methods inherited from class net.sf.gridarta.model.spells.Spell

        getName
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • GameObjectSpell

        public GameObjectSpell​(@NotNull
                               R archetype,
                               @NotNull
                               @NotNull GameObjectFactory<G,​A,​R> gameObjectFactory)
        Creates a new instance.
        Parameters:
        archetype - the spell template archetype
        gameObjectFactory - 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