20 package net.sf.gridarta.model.mapcontrol;
22 import java.util.List;
31 import org.jetbrains.annotations.NotNull;
32 import org.jetbrains.annotations.Nullable;
75 if (objects != null) {
92 throw new AssertionError();
A factory for creating MapModel instances.
MapControl< TestGameObject, TestMapArchObject, TestArchetype > newPickmapControl(@Nullable final List< TestGameObject > objects, @NotNull final TestMapArchObject mapArchObject, @Nullable final MapFile mapFile)
A MapModel reflects the data of a map.
Reading and writing of maps, handling of paths.
Settings that apply to a project.
Interface for classes that write map files.
void endTransaction()
End a transaction.
An MapControlFactory implementation for testing purposes.
A MapArchObject implementation for testing purposes.
MapModel< G, A, R > getMapModel()
Returns the map model.
Base package of all Gridarta classes.
final ProjectSettings projectSettings
The ProjectSettings to use.
GameObjects are the objects based on Archetypes found on maps.
void addObjectListToMap(@NotNull Iterable< G > objects)
Adds a list of GameObjects to this map.
MapControl< TestGameObject, TestMapArchObject, TestArchetype > newMapControl(@Nullable final List< TestGameObject > objects, @NotNull final TestMapArchObject mapArchObject, @Nullable final MapFile mapFile)
MapModel< G, A, R > newMapModel(@NotNull final A mapArchObject)
Creates a new MapModel instance.
TestMapControlFactory(@NotNull final MapWriter< TestGameObject, TestMapArchObject, TestArchetype > mapWriter, @NotNull final ProjectSettings projectSettings, @NotNull final MapModelFactory< TestGameObject, TestMapArchObject, TestArchetype > mapModelFactory)
Creates a new instance.
Currently nothing more than a marker interface for unification.
void resetModified()
Resets the modified flag to false.
An Archetype implementation for testing purposes.
A GameObject implementation for testing purposes.
final MapModelFactory< TestGameObject, TestMapArchObject, TestArchetype > mapModelFactory
The MapModelFactory for creating MapModel instances.
void beginTransaction(@NotNull String name)
Starts a new transaction.
void setMapFile(@Nullable MapFile mapFile)
Sets the map file.
final MapWriter< TestGameObject, TestMapArchObject, TestArchetype > mapWriter
The MapWriter for saving MapControl instances.
The location of a map file with a map directory.
Factory for creating MapControl instances.