public class DefaultMapControlFactory extends java.lang.Object implements MapControlFactory<GameObject,MapArchObject,Archetype>
MapControlFactory to create Crossfire instance.| Constructor and Description |
|---|
DefaultMapControlFactory(@NotNull MapWriter<GameObject,MapArchObject,Archetype> mapWriter,
@NotNull ProjectSettings projectSettings,
@NotNull MapModelFactory<GameObject,MapArchObject,Archetype> mapModelFactory)
Creates a new instance.
|
| Modifier and Type | Method and 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.
|
public DefaultMapControlFactory(@NotNull
@NotNull MapWriter<GameObject,MapArchObject,Archetype> mapWriter,
@NotNull
@NotNull ProjectSettings projectSettings,
@NotNull
@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 @NotNull MapControl<GameObject,MapArchObject,Archetype> newMapControl(@Nullable @Nullable java.util.List<GameObject> objects, @NotNull @NotNull MapArchObject mapArchObject, @Nullable @Nullable MapFile mapFile)
MapControlFactorynewMapControl 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 @NotNull MapControl<GameObject,MapArchObject,Archetype> newPickmapControl(@Nullable @Nullable java.util.List<GameObject> objects, @NotNull @NotNull MapArchObject mapArchObject, @Nullable @Nullable MapFile mapFile)
MapControlFactorynewPickmapControl 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