Package net.sf.gridarta.model.mapmanager
Class DefaultPickmapManager<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>>
- java.lang.Object
-
- net.sf.gridarta.model.mapmanager.AbstractMapManager<G,A,R>
-
- net.sf.gridarta.model.mapmanager.DefaultPickmapManager<G,A,R>
-
- All Implemented Interfaces:
MapManager<G,A,R>
public class DefaultPickmapManager<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>> extends AbstractMapManager<G,A,R>
Manages all opened pickmaps.
-
-
Constructor Summary
Constructors Constructor Description DefaultPickmapManager(@NotNull MapReaderFactory<G,A> mapReaderFactory, @NotNull MapControlFactory<G,A,R> mapControlFactory, @NotNull ProjectSettings projectSettings, @NotNull FaceObjectProviders faceObjectProviders, @NotNull PathManager pathManager)Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected @NotNull MapControl<G,A,R>createMapControl(@Nullable java.util.List<G> objects, A mapArchObject, @Nullable MapFile mapFile)Creates a newMapControlinstance.-
Methods inherited from class net.sf.gridarta.model.mapmanager.AbstractMapManager
addMapManagerListener, closeMap, getCurrentMap, getLocalMapDir, getOpenedMaps, getOpenMap, newMap, openMapFile, openMapFile, release, removeMapManagerListener, revert, setCurrentMap, setFileControl
-
-
-
-
Constructor Detail
-
DefaultPickmapManager
public DefaultPickmapManager(@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)Creates a new instance.- Parameters:
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
-
-
Method Detail
-
createMapControl
@NotNull protected @NotNull MapControl<G,A,R> createMapControl(@Nullable @Nullable java.util.List<G> objects, @NotNull A mapArchObject, @Nullable @Nullable MapFile mapFile)
Description copied from class:AbstractMapManagerCreates a newMapControlinstance.- Specified by:
createMapControlin classAbstractMapManager<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>>- Parameters:
objects- the objects to insert into the new mapmapArchObject- the map arch object to use for the new mapmapFile- the associated map file- Returns:
- the new map control instance
-
-