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

    • Constructor Detail

      • AbstractArchetypeBuilder

        protected AbstractArchetypeBuilder​(@NotNull
                                           @NotNull GameObjectFactory<G,​A,​R> gameObjectFactory)
        Creates a new instance.
        Parameters:
        gameObjectFactory - the game object factory for creating the new archetype
    • Method Detail

      • init

        public void init​(@Nullable
                         R prototype,
                         @NotNull
                         @NotNull ErrorViewCollector errorViewCollector)
        Parameters:
        prototype - the base archetype for artifacts; null when parsing archetypes
        errorViewCollector - all error and warning messages will be added to this error view collector
      • reInit

        public void reInit​(@NotNull
                           @NotNull java.lang.String archetypeName)
      • setMsgText

        public void setMsgText​(@NotNull
                               @NotNull java.lang.String msgText)
      • getArchetypeName

        @NotNull
        public @NotNull java.lang.String getArchetypeName()
      • addObjectText

        public void addObjectText​(@NotNull
                                  @NotNull java.lang.String line)
      • addLast

        public void addLast​(@NotNull
                            G invObject)
      • finish

        @NotNull
        public R finish()
        Finishes archetype construction.
        Returns:
        the constructed archetype
      • setMultiX

        public void setMultiX​(int multiX)
      • setMultiY

        public void setMultiY​(int multiY)
      • getArchetype

        @NotNull
        protected R getArchetype()