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(@NotNull ArchetypeChooserModel<G,A,R> archetypeChooserModel,
@NotNull AutojoinLists<G,A,R> autojoinLists,
@NotNull GameObjectFactory<G,A,R> gameObjectFactory,
@NotNull GameObjectMatchers gameObjectMatchers,
@NotNull InsertionMode topmostInsertionMode)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
@NotNull MapModel<G,A,R> |
newMapModel(A mapArchObject)
Creates a new
MapModel instance. |
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)
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