Gridarta Editor
net.sf.gridarta.model.mapmanager.DefaultPickmapManager< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R > Class Template Reference

Manages all opened pickmaps. More...

+ Inheritance diagram for net.sf.gridarta.model.mapmanager.DefaultPickmapManager< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >:
+ Collaboration diagram for net.sf.gridarta.model.mapmanager.DefaultPickmapManager< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >:

Public Member Functions

 DefaultPickmapManager (@NotNull final MapReaderFactory< G, A > mapReaderFactory, @NotNull final MapControlFactory< G, A, R > mapControlFactory, @NotNull final ProjectSettings projectSettings, @NotNull final FaceObjectProviders faceObjectProviders, @NotNull final PathManager pathManager)
 Creates a new instance. More...
 
- Public Member Functions inherited from net.sf.gridarta.model.mapmanager.AbstractMapManager< G, A, R >
void addMapManagerListener ( @NotNull final MapManagerListener< G, A, R > listener)
 
void closeMap ( @NotNull final MapControl< G, A, R > mapControl)
 
MapControl< G, A, R > getCurrentMap ()
 Returns the current top map we are working with. More...
 
File getLocalMapDir ()
 
List< MapControl< G, A, R > > getOpenedMaps ()
 
MapControl< G, A, R > getOpenMap ()
 
MapControl< G, A, R > newMap ( @Nullable final List< G > objects, @NotNull final A mapArchObject, @Nullable final MapFile mapFile, final boolean interactive)
 
MapControl< G, A, R > openMapFile ( @NotNull final File file, final boolean interactive) throws IOException
 
MapControl< G, A, R > openMapFile ( @NotNull final MapFile mapFile, final boolean interactive) throws IOException
 
void release ( @NotNull final MapControl< G, A, R > mapControl)
 
void removeMapManagerListener ( @NotNull final MapManagerListener< G, A, R > listener)
 
void revert ( @NotNull final MapControl< G, A, R > mapControl) throws IOException
 
void setCurrentMap ( @Nullable final MapControl< G, A, R > mapControl)
 
void setFileControl ( @NotNull final FileControl< G, A, R > fileControl)
 

Protected Member Functions

MapControl< G, A, R > createMapControl (@Nullable final List< G > objects, @NotNull final A mapArchObject, @Nullable final MapFile mapFile)
 
- Protected Member Functions inherited from net.sf.gridarta.model.mapmanager.AbstractMapManager< G, A, R >
 AbstractMapManager ( @NotNull final MapReaderFactory< G, A > mapReaderFactory, @NotNull final ProjectSettings projectSettings, @NotNull final FaceObjectProviders faceObjectProviders, @NotNull final PathManager pathManager)
 Creates a instance. More...
 
abstract MapControl< G, A, R > createMapControl ( @Nullable List< G > objects, @NotNull A mapArchObject, @Nullable MapFile mapFile)
 Creates a new MapControl instance. More...
 

Private Attributes

final MapControlFactory< G, A, R > mapControlFactory
 The MapControlFactory instance. More...
 

Detailed Description

Manages all opened pickmaps.

Author
Andreas Kirschbaum

Definition at line 40 of file DefaultPickmapManager.java.

Constructor & Destructor Documentation

◆ DefaultPickmapManager()

net.sf.gridarta.model.mapmanager.DefaultPickmapManager< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.DefaultPickmapManager ( @NotNull final MapReaderFactory< G, A >  mapReaderFactory,
@NotNull final MapControlFactory< G, A, R >  mapControlFactory,
@NotNull final ProjectSettings  projectSettings,
@NotNull final FaceObjectProviders  faceObjectProviders,
@NotNull final PathManager  pathManager 
)

Creates a new instance.

Parameters
mapReaderFactorythe map reader factory instance
mapControlFactorythe map control factory instance
projectSettingsthe project settings instance
faceObjectProvidersthe face object providers
pathManagerthe path manager for converting file instances

Definition at line 56 of file DefaultPickmapManager.java.

References net.sf.gridarta.model.mapmanager.DefaultPickmapManager< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.mapControlFactory, net.sf.gridarta.model.mapmanager.AbstractMapManager< G, A, R >.mapReaderFactory, net.sf.gridarta.model.mapmanager.AbstractMapManager< G, A, R >.pathManager, and net.sf.gridarta.model.mapmanager.AbstractMapManager< G, A, R >.projectSettings.

Member Function Documentation

◆ createMapControl()

Member Data Documentation

◆ mapControlFactory


The documentation for this class was generated from the following file: