public class DefaultMapControlFactory extends java.lang.Object implements MapControlFactory<GameObject,MapArchObject,Archetype>
MapControlFactory
to create Crossfire instance.Constructor and Description |
---|
DefaultMapControlFactory(MapWriter<GameObject,MapArchObject,Archetype> mapWriter,
ProjectSettings projectSettings,
MapModelFactory<GameObject,MapArchObject,Archetype> mapModelFactory)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
MapControl<GameObject,MapArchObject,Archetype> |
newMapControl(java.util.List<GameObject> objects,
MapArchObject mapArchObject,
MapFile mapFile)
Create a new map control instance.
|
MapControl<GameObject,MapArchObject,Archetype> |
newPickmapControl(java.util.List<GameObject> objects,
MapArchObject mapArchObject,
MapFile mapFile)
Create a new pickmap map control instance.
|
public DefaultMapControlFactory(@NotNull MapWriter<GameObject,MapArchObject,Archetype> mapWriter, @NotNull ProjectSettings projectSettings, @NotNull MapModelFactory<GameObject,MapArchObject,Archetype> mapModelFactory)
mapWriter
- the map writer for saving map control instancesprojectSettings
- the project settings to usemapModelFactory
- the map model factory for creating map model
instances@NotNull public MapControl<GameObject,MapArchObject,Archetype> newMapControl(@Nullable java.util.List<GameObject> objects, @NotNull MapArchObject mapArchObject, @Nullable MapFile mapFile)
newMapControl
in interface MapControlFactory<GameObject,MapArchObject,Archetype>
objects
- the objects to insert into the new mapmapArchObject
- the map arch object to use for the new mapmapFile
- the associated map file@NotNull public MapControl<GameObject,MapArchObject,Archetype> newPickmapControl(@Nullable java.util.List<GameObject> objects, @NotNull MapArchObject mapArchObject, @Nullable MapFile mapFile)
newPickmapControl
in interface MapControlFactory<GameObject,MapArchObject,Archetype>
objects
- the objects to insert into the new pickmapmapArchObject
- the map arch object to use for the new pickmapmapFile
- the associated map file