public class MapModelFactory<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>>
extends java.lang.Object
MapModel
instances.Constructor and Description |
---|
MapModelFactory(ArchetypeChooserModel<G,A,R> archetypeChooserModel,
AutojoinLists<G,A,R> autojoinLists,
GameObjectFactory<G,A,R> gameObjectFactory,
GameObjectMatchers gameObjectMatchers,
InsertionMode<G,A,R> topmostInsertionMode)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
MapModel<G,A,R> |
newMapModel(A mapArchObject)
Creates a new
MapModel instance. |
public MapModelFactory(@NotNull ArchetypeChooserModel<G,A,R> archetypeChooserModel, @NotNull AutojoinLists<G,A,R> autojoinLists, @NotNull GameObjectFactory<G,A,R> gameObjectFactory, @NotNull GameObjectMatchers gameObjectMatchers, @NotNull InsertionMode<G,A,R> topmostInsertionMode)
archetypeChooserModel
- the archetype chooser model to useautojoinLists
- the autojoin lists to usegameObjectFactory
- the game object factory for creating game
objectsgameObjectMatchers
- the game object matchers to usetopmostInsertionMode
- the "topmost" insertion mode