net.sf.gridarta.model.mapcontrol
public class TestMapControlFactory extends Object implements MapControlFactory<TestGameObject,TestMapArchObject,TestArchetype>
MapControlFactory
implementation for testing purposes.Modifier and Type | Field and Description |
---|---|
private MapModelFactory<TestGameObject,TestMapArchObject,TestArchetype> |
mapModelFactory
The
MapModelFactory for creating MapModel instances. |
private MapWriter<TestGameObject,TestMapArchObject,TestArchetype> |
mapWriter
The
MapWriter for saving MapControl instances. |
private ProjectSettings |
projectSettings
The
ProjectSettings to use. |
Constructor and Description |
---|
TestMapControlFactory(MapWriter<TestGameObject,TestMapArchObject,TestArchetype> mapWriter,
ProjectSettings projectSettings,
MapModelFactory<TestGameObject,TestMapArchObject,TestArchetype> mapModelFactory)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
MapControl<TestGameObject,TestMapArchObject,TestArchetype> |
newMapControl(List<TestGameObject> objects,
TestMapArchObject mapArchObject,
File file)
Create a new map control instance.
|
MapControl<TestGameObject,TestMapArchObject,TestArchetype> |
newPickmapControl(List<TestGameObject> objects,
TestMapArchObject mapArchObject,
File file)
Create a new pickmap map control instance.
|
@NotNull private final MapWriter<TestGameObject,TestMapArchObject,TestArchetype> mapWriter
MapWriter
for saving MapControl
instances.@NotNull private final ProjectSettings projectSettings
ProjectSettings
to use.@NotNull private final MapModelFactory<TestGameObject,TestMapArchObject,TestArchetype> mapModelFactory
MapModelFactory
for creating MapModel
instances.public TestMapControlFactory(@NotNull MapWriter<TestGameObject,TestMapArchObject,TestArchetype> mapWriter, @NotNull ProjectSettings projectSettings, @NotNull MapModelFactory<TestGameObject,TestMapArchObject,TestArchetype> 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<TestGameObject,TestMapArchObject,TestArchetype> newMapControl(@Nullable List<TestGameObject> objects, @NotNull TestMapArchObject mapArchObject, @Nullable File file)
newMapControl
in interface MapControlFactory<TestGameObject,TestMapArchObject,TestArchetype>
objects
- the objects to insert into the new mapmapArchObject
- the map arch object to use for the new mapfile
- the associated file@NotNull public MapControl<TestGameObject,TestMapArchObject,TestArchetype> newPickmapControl(@Nullable List<TestGameObject> objects, @NotNull TestMapArchObject mapArchObject, @Nullable File file)
newPickmapControl
in interface MapControlFactory<TestGameObject,TestMapArchObject,TestArchetype>
objects
- the objects to insert into the new pickmapmapArchObject
- the map arch object to use for the new pickmapfile
- the associated fileFeedback: webmaster
© 2003-2010 The Gridarta Developers. All rights reserved.