Class DefaultMapControlFactory
- java.lang.Object
-
- net.sf.gridarta.var.atrinik.model.mapcontrol.DefaultMapControlFactory
-
- All Implemented Interfaces:
MapControlFactory<GameObject,MapArchObject,Archetype>
public class DefaultMapControlFactory extends java.lang.Object implements MapControlFactory<GameObject,MapArchObject,Archetype>
AMapControlFactoryto create Crossfire instance.
-
-
Constructor Summary
Constructors Constructor Description DefaultMapControlFactory(@NotNull MapWriter<GameObject,MapArchObject,Archetype> mapWriter, @NotNull ProjectSettings projectSettings, @NotNull MapModelFactory<GameObject,MapArchObject,Archetype> mapModelFactory)Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @NotNull MapControl<GameObject,MapArchObject,Archetype>newMapControl(@Nullable java.util.List<GameObject> objects, @NotNull MapArchObject mapArchObject, @Nullable MapFile mapFile)Creates a new map control instance.@NotNull MapControl<GameObject,MapArchObject,Archetype>newPickmapControl(@Nullable java.util.List<GameObject> objects, @NotNull MapArchObject mapArchObject, @Nullable MapFile mapFile)Creates a new pickmap map control instance.
-
-
-
Constructor Detail
-
DefaultMapControlFactory
public DefaultMapControlFactory(@NotNull @NotNull MapWriter<GameObject,MapArchObject,Archetype> mapWriter, @NotNull @NotNull ProjectSettings projectSettings, @NotNull @NotNull MapModelFactory<GameObject,MapArchObject,Archetype> mapModelFactory)Creates a new instance.- Parameters:
mapWriter- the map writer for saving map control instancesprojectSettings- the project settings to usemapModelFactory- the map model factory for creating map model instances
-
-
Method Detail
-
newMapControl
@NotNull public @NotNull MapControl<GameObject,MapArchObject,Archetype> newMapControl(@Nullable @Nullable java.util.List<GameObject> objects, @NotNull @NotNull MapArchObject mapArchObject, @Nullable @Nullable MapFile mapFile)
Description copied from interface:MapControlFactoryCreates a new map control instance.- Specified by:
newMapControlin interfaceMapControlFactory<GameObject,MapArchObject,Archetype>- 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
-
newPickmapControl
@NotNull public @NotNull MapControl<GameObject,MapArchObject,Archetype> newPickmapControl(@Nullable @Nullable java.util.List<GameObject> objects, @NotNull @NotNull MapArchObject mapArchObject, @Nullable @Nullable MapFile mapFile)
Description copied from interface:MapControlFactoryCreates a new pickmap map control instance.- Specified by:
newPickmapControlin interfaceMapControlFactory<GameObject,MapArchObject,Archetype>- Parameters:
objects- the objects to insert into the new pickmapmapArchObject- the map arch object to use for the new pickmapmapFile- the associated map file- Returns:
- the new pickmap map control instance
-
-