public class DefaultMapManager<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>> extends AbstractMapManager<G,A,R>
Constructor and Description |
---|
DefaultMapManager(@NotNull MapReaderFactory<G,A> mapReaderFactory,
@NotNull MapControlFactory<G,A,R> mapControlFactory,
@NotNull ProjectSettings projectSettings,
@NotNull FaceObjectProviders faceObjectProviders,
@NotNull PathManager pathManager)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
protected @NotNull MapControl<G,A,R> |
createMapControl(@Nullable java.util.List<G> objects,
A mapArchObject,
@Nullable MapFile mapFile)
Creates a new
MapControl instance. |
addMapManagerListener, closeMap, getCurrentMap, getLocalMapDir, getOpenedMaps, getOpenMap, newMap, openMapFile, openMapFile, release, removeMapManagerListener, revert, setCurrentMap, setFileControl
public DefaultMapManager(@NotNull @NotNull MapReaderFactory<G,A> mapReaderFactory, @NotNull @NotNull MapControlFactory<G,A,R> mapControlFactory, @NotNull @NotNull ProjectSettings projectSettings, @NotNull @NotNull FaceObjectProviders faceObjectProviders, @NotNull @NotNull PathManager pathManager)
mapReaderFactory
- the map reader factory instancemapControlFactory
- the map control factory instanceprojectSettings
- the project settings instancefaceObjectProviders
- the face object providerspathManager
- the path manager for converting file instances@NotNull protected @NotNull MapControl<G,A,R> createMapControl(@Nullable @Nullable java.util.List<G> objects, @NotNull A mapArchObject, @Nullable @Nullable MapFile mapFile)
AbstractMapManager
MapControl
instance.createMapControl
in class AbstractMapManager<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>>
objects
- the objects to insert into the new mapmapArchObject
- the map arch object to use for the new mapmapFile
- the associated map file