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

    • Constructor Detail

      • DefaultMapManager

        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)
        Creates a new instance.
        Parameters:
        mapReaderFactory - the map reader factory instance
        mapControlFactory - the map control factory instance
        projectSettings - the project settings instance
        faceObjectProviders - the face object providers
        pathManager - 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: AbstractMapManager
        Creates a new MapControl instance.
        Specified by:
        createMapControl in class AbstractMapManager<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 map
        mapArchObject - the map arch object to use for the new map
        mapFile - the associated map file
        Returns:
        the new map control instance