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

    • Constructor Detail

      • MapModelFactory

        public MapModelFactory​(@NotNull
                               @NotNull ArchetypeChooserModel<G,​A,​R> archetypeChooserModel,
                               @NotNull
                               @NotNull AutojoinLists<G,​A,​R> autojoinLists,
                               @NotNull
                               @NotNull GameObjectFactory<G,​A,​R> gameObjectFactory,
                               @NotNull
                               @NotNull GameObjectMatchers gameObjectMatchers,
                               @NotNull
                               @NotNull InsertionMode topmostInsertionMode)
        Creates a new instance.
        Parameters:
        archetypeChooserModel - the archetype chooser model to use
        autojoinLists - the autojoin lists to use
        gameObjectFactory - the game object factory for creating game objects
        gameObjectMatchers - the game object matchers to use
        topmostInsertionMode - the "topmost" insertion mode
    • Method Detail

      • newMapModel

        @NotNull
        public @NotNull MapModel<G,​A,​R> newMapModel​(@NotNull
                                                                A mapArchObject)
        Creates a new MapModel instance.
        Parameters:
        mapArchObject - the map arch object for the map model
        Returns:
        the map model instance